|
35 | 35 |
|
36 | 36 | #define TFT_BL 4
|
37 | 37 |
|
38 |
| - |
39 |
| -DisplayST7789_135x240x16_SPI display(23,{-1, 5, 16, 0, 18, 19}); // Use this line for ESP32 (VSPI) TTGO (gpio23=RST, gpio5=CE for VSPI, gpio16=D/C) |
40 |
| -//DisplayST7789_135x240x16_CustomSPI<EspSpi> display(23, 16, -1, 5, 16, 18, 19, 32000000); // ESP32 TTGO RST, DC, BUS, CS, DC, CLK, MOSI, FREQ |
41 |
| -//DisplayST7789_135x240x16_SPI display(3,{-1, 4, 5, 0,-1,-1}); // Use this line for Atmega328p |
42 |
| -//DisplayST7789_135x240x16_SPI display(3,{-1, 4, 5, 0,-1,-1}); // Use this line for Atmega328p |
| 38 | +// The parameters are RST pin, BUS number, CS pin, DC pin, FREQ (0 means default), CLK pin, MOSI pin |
| 39 | +DisplayST7789_135x240x16_SPI display(3,{-1, 4, 5, 0,-1,-1}); // Use this line for Atmega328p |
| 40 | +//DisplayST7789_135x240x16_SPI display(22,{-1, 5, 21, 0, -1, -1}); // Use this line for ESP32 (VSPI) TTGO (gpio23=RST, gpio5=CE for VSPI, gpio16=D/C) |
43 | 41 | //DisplayST7789_135x240x16_SPI display(3,{-1, -1, 4, 0, -1, -1}); // FOR ATTINY
|
44 | 42 | //DisplayST7789_135x240x16_SPI display(-1,{-1, 0, 1, 0, -1, -1); // Use this line for nano pi (RST not used, 0=CE, gpio1=D/C)
|
45 | 43 | //DisplayST7789_135x240x16_SPI display(24,{-1, 0, 23, 0,-1,-1}); // Use this line for Raspberry (gpio24=RST, 0=CE, gpio23=D/C)
|
46 | 44 | //DisplayST7789_135x240x16_SPI display(22,{-1, 5, 21, 0,-1,-1}); // Use this line for ESP32 (VSPI) (gpio22=RST, gpio5=CE for VSPI, gpio21=D/C)
|
47 | 45 | //DisplayST7789_135x240x16_SPI display(4,{-1, -1, 5, 0,-1,-1}); // Use this line for ESP8266 Arduino style rst=4, CS=-1, DC=5
|
48 | 46 | // And ESP8266 RTOS IDF. GPIO4 is D2, GPIO5 is D1 on NodeMCU boards
|
| 47 | +//DisplayST7789_135x240x16_CustomSPI<EspSpi> display(23, 16, -1, 5, 16, 18, 19, 32000000); // ESP32 TTGO RST, DC, BUS, CS, DC, CLK, MOSI, FREQ |
49 | 48 |
|
50 | 49 |
|
51 | 50 | /*
|
|
0 commit comments