added pins for tubler and touch
This commit is contained in:
@@ -13,19 +13,30 @@
|
||||
/* Potentiometer wiper → ADC */
|
||||
#define PIN_POT 26 /* ADC0 */
|
||||
|
||||
/* Тумблер: GP9, второй контакт замыкать на землю (internal pull-up) */
|
||||
#define PIN_TOGGLE 9
|
||||
|
||||
/*
|
||||
* TPM408-2.8 (ILI9341 240x320) + shared SPI touch/SD:
|
||||
* TPM408-2.8 (ILI9341 240x320):
|
||||
* SCK → GP18
|
||||
* SDI → GP19 (MOSI)
|
||||
* SDO → GP16 (MISO, optional)
|
||||
* CS → GP17 (LCD)
|
||||
* SDO → GP16 (MISO) — LCD SDO, optional
|
||||
* CS → GP17
|
||||
* DC → GP20
|
||||
* RES → GP21
|
||||
* LED → GP22
|
||||
* SD_CS→ GP7 (hold HIGH if unused)
|
||||
*
|
||||
* MUST hold inactive (HIGH) or SPI bus fights the LCD → edge garbage:
|
||||
* T_CS → GP6 (touch XPT2046 CS) — or tie to 3.3V if unused
|
||||
* SD_CS → GP7 (microSD CS) — or tie to 3.3V if unused
|
||||
* Touch XPT2046 — on THIS panel T_* does NOT share tracks with LCD
|
||||
* (continuity check failed). Wire all 5 touch pins to Pico:
|
||||
*
|
||||
* T_CLK → GP18 (jumper to same net as LCD SCK)
|
||||
* T_DIN → GP19 (jumper to same net as LCD MOSI)
|
||||
* T_DO → GP16 (touch DO — NOT LCD SDO if they are separate pads)
|
||||
* T_CS → GP6
|
||||
* T_IRQ → GP8
|
||||
*
|
||||
* During a touch sample we bit-bang CLK/DIN/DO; LCD SPI is restored after.
|
||||
*/
|
||||
#define PIN_LCD_MISO 16
|
||||
#define PIN_LCD_CS 17
|
||||
@@ -35,7 +46,19 @@
|
||||
#define PIN_LCD_RES 21
|
||||
#define PIN_LCD_BL 22
|
||||
|
||||
#define PIN_TOUCH_CS 6
|
||||
#define PIN_T_CLK 18
|
||||
#define PIN_T_DIN 19
|
||||
#define PIN_T_DO 16
|
||||
#define PIN_T_CS 6
|
||||
#define PIN_T_IRQ 8
|
||||
|
||||
#define PIN_TOUCH_CS PIN_T_CS
|
||||
#define PIN_TOUCH_IRQ PIN_T_IRQ
|
||||
#define PIN_TOUCH_SCK PIN_T_CLK
|
||||
#define PIN_TOUCH_MOSI PIN_T_DIN
|
||||
#define PIN_TOUCH_MISO PIN_T_DO
|
||||
|
||||
#define PIN_SD_CS 7
|
||||
|
||||
#define LCD_SPI_INST spi0
|
||||
#define LCD_SPI_INST spi0
|
||||
#define TOUCH_SPI_INST LCD_SPI_INST
|
||||
|
||||
Reference in New Issue
Block a user