phil99
 Guru
 Joined: 11/02/2018 Location: AustraliaPosts: 3149 |
| Posted: 12:08am 11 Jun 2025 |
|
|
|
See Display Panels p57 in the V6.00.02 draft manual. A typical example is: OPTION SYSTEM SPI CLK-pin, MOSI-pin, MISO-pin eg OPTION SYSTEM SPI GP18, GP19, GP16
OPTION LCDPANEL ILI9341, Orientation, DC, RESET, CS(Chip Select) [,LED (Back Light brightness)] [,INVERT colours] '[] are optional. If not using brightness control connect the LED pin on the panel to 3.3V Older panels (v1.1) don't have transistor Q1 to drive the LEDs so must not be connected to a GP pin. Connect LED pin to 3.3V via a 100Ω to 220Ω resistor. eg OPTION LCDPANEL ILI9341, LANDSCAPE, GP15, GP14, GP13, GP20 'use any free pins for these
Leave these touch pins disconnected T_IRQ, T_DO, T_DIN, T_CLK and connect T_CS to 3.3V (via a 10kΩ resistor would allow you to use touch in the future)
You can save some SD card pins by sharing the SPI bus. First remove your current configuration with OPTION SDCARD DISABLE then OPTION SDCARD GP22 'SD_CS - chip select can be any free GP pin connect SD_CLK to GP18, SD_MOSI to GP19, SD_MISO to GP16
Also see page 64 Example SPI LCD Panel Configuration Edited 2025-06-11 10:09 by phil99 |