Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Mario Mikočević
#20956 Heya,

can anyone show me how to connect TFT 1.8" LCD with ESP8266 ?
Preferably NodeMCU 0.9dev board markings.

I have one with pins noted - CS, SCK, SDA, A0, RESET.
I'm trying to use this library -> https://github.com/nzmichaelh/Adafruit-ST7735-Library .
According to pinout picture I can gather HSPICS and HSPICLK but have no idea where to connect A0 and/or RESET and
is SDA to HSPIQ or HSPID.

TIA,

--
Mozz
User avatar
By Mario Mikočević
#21116 Heya,

after some reading managed to get it working, so for posterity here is documented pinout map ->

Code: Select all/*
 * ESP8266-12        HY-1.8 SPI
 * GPIO5             Pin 06 (RESET)
 * GPIO2             Pin 07 (A0)
 * GPIO13 (HSPID)    Pin 08 (SDA)
 * GPIO14 (HSPICLK)  Pin 09 (SCK)
 * GPIO15 (HSPICS)   Pin 10 (CS)
  */

#define TFT_PIN_CS   15
#define TFT_PIN_DC   2
#define TFT_PIN_RST  5

Adafruit_ST7735 tft = Adafruit_ST7735(TFT_PIN_CS, TFT_PIN_DC, TFT_PIN_RST);


--
Mozz