I am trying to connect to a ST7735 display using the following library:
https://github.com/sumotoy/TFT_ILI9163C ... ease-1.0p7
I can't find wiring instruction for the ESP32 for the board I am using and I was wondering if anyone knows what pin should I use
I have attached a pict of the board I am using and the ST7735 display
trying to connect to a ST7735 1.8" TFT display
trying to connect to a ST7735 1.8" TFT display
- Attachments
-
- esp32 sp7735.png (8.92 MiB) Viewed 33902 times
Re: trying to connect to a ST7735 1.8" TFT display
Since its not tensy boars or esp8266 you will need to use this constructor:
And for CLK = pin18, SDA=23. At least his implementation for ssd1331 works for me this way on esp32.
Code: Select all
#else //All the rest
TFT_ILI9163C::TFT_ILI9163C(const enum ILI9163C_dispType d,const uint8_t cspin,const uint8_t dcpin,const uint8_t rstpin)
{
_cs = cspin;
_dc = dcpin;
_rst = rstpin;
TFT_ILI9163C_DISP = d;
}
Re: trying to connect to a ST7735 1.8" TFT display
from the library instruction:
TFT side -------------------- ESP8266
- Vcc --> +3V3V(!!!!)
- Gnd --> Gnd
- CS --> D0
- RST --> D2 (optional) if not used tie to +3V3 or 4k7..10K to 3V3 (do NOT leave float!)
- A0 -> D1
- SDA --> Mosi (D7)
- SCK --> Sclk (D5)
- LED --> Some display need a resistor (see note below)
________
thank you Chegewara,
I don't have D0, A0, D7 on the NODEMCU32 board.
what pins should I use ?
TFT side -------------------- ESP8266
- Vcc --> +3V3V(!!!!)
- Gnd --> Gnd
- CS --> D0
- RST --> D2 (optional) if not used tie to +3V3 or 4k7..10K to 3V3 (do NOT leave float!)
- A0 -> D1
- SDA --> Mosi (D7)
- SCK --> Sclk (D5)
- LED --> Some display need a resistor (see note below)
________
thank you Chegewara,
I don't have D0, A0, D7 on the NODEMCU32 board.
what pins should I use ?
Re: trying to connect to a ST7735 1.8" TFT display
Whatever you have unused. Just im not 100% sure that pins 33-39 will work. In my case it was 5, 16 and 17. Like VSPI pins.
Re: trying to connect to a ST7735 1.8" TFT display
I modified the User_Setup.h file of the TFT eSPI library and uncommented the following lines:
#define ST7735_DRIVER
#define TFT_WIDTH 128
#define TFT_HEIGHT 160
#define ST7735_INITB
#define TFT_CS PIN_D5 // Chip select control pin
#define TFT_DC PIN_D2 // Data Command control pin
#define TFT_RST PIN_D4 // Reset pin (could connect to RST pin)
#define SPI_FREQUENCY 27000000
and connected:
CS pin on the st7735 to NODEMCU pin D5
DC on the st7735 to NODEMCU pin D2
RST on the st7735 to NODEMCU pin D4
and ran one of the examples but the display is blank !
#define ST7735_DRIVER
#define TFT_WIDTH 128
#define TFT_HEIGHT 160
#define ST7735_INITB
#define TFT_CS PIN_D5 // Chip select control pin
#define TFT_DC PIN_D2 // Data Command control pin
#define TFT_RST PIN_D4 // Reset pin (could connect to RST pin)
#define SPI_FREQUENCY 27000000
and connected:
CS pin on the st7735 to NODEMCU pin D5
DC on the st7735 to NODEMCU pin D2
RST on the st7735 to NODEMCU pin D4
and ran one of the examples but the display is blank !
- Attachments
-
- PastedGraphic-1.png (7.85 MiB) Viewed 33852 times
Re: trying to connect to a ST7735 1.8" TFT display
Could you paste part of code with tft initialization. It could looks like this:
Code: Select all
#define __CS1 5 // or D5
#define __DC 2 // D2
#define __RST 4 // D4
TFT_ILI9163C tft = TFT_ILI9163C(__CS1, __DC, __RST);
LilyGO - TTGO TS v1.2 configuration
For the board TTGO TS v1.2 with 1.8'' screen, https://www.aliexpress.com/store/produc ... 43640.html
here is the configuration:
here is the configuration:
Code: Select all
#define ST7735_DRIVER
#define TFT_WIDTH 128
#define TFT_HEIGHT 160
#define ST7735_GREENTAB2
#define TFT_CS 16
#define TFT_DC 17
#define TFT_RST -1
#define TFT_MISO -1
#define TFT_MOSI 23
#define TFT_SCLK 5
//#define SMOOTH_FONT
Who is online
Users browsing this forum: No registered users and 41 guests