acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
wiring.ino (1402B)
1 /* 2 This is the example wiring used for the sketch testing. 3 4 You must not define the TFT_CS pin in the TFT_eSPI library if you are 5 using two independant displays. Instead the chip selects (CS) must be 6 defined in the "config.h" tab of this sketch. The sketch can then select 7 the dispay to send graphics to. 8 9 If you are only using one display, then TFT_CS can be defined in the 10 TFT_eSPI library. 11 12 The "Setup47_ST7735.h" file was used for the two TFT test using the wiring 13 as shown below: 14 15 Function ESP32 pin TFT 1 TFT 2 16 MOSI 23 -> SDA -> SDA // The TFT pin may be named DIN 17 MISO 19 // Not connected 18 SCLK 18 -> CLK -> CLK // The TFT pin may be named SCK 19 TFT_DC 2 -> DC -> DC // The TFT pin may be named AO 20 TFT_RST 4 -> RST -> RST 21 CS 1 22 -> CS // Connected to TFT 1 only 22 CS 2 21 -> CS // Connected to TFT 2 only 23 +5V/VIN -> VCC -> VCC 24 0V -> GND -> GND 25 +5V/VIN -> LED -> LED // Some displays do not have a backlight BL/LED pin 26 27 The displays used for testing were 128x128 ST7735 displays, the TFT_eSPI library setup file may need 28 to be changed as these displays come in many configuration variants. 29 30 31 */