ArduinoGeneral

NodeMCU support for 2.2" TFT display

userHead phil.shotton 2020-04-25 02:54:23 1763 Views2 Replies
Trying to use a 2.2”TFT LCD Display V1.0 (SPI Interface) with a NodeMCU ESP2866 dev board.
Pin settings as below:
uint8_t pin_cs = 5, pin_rs = 4, pin_wr = 10, pin_lck = 9;
Wired as follows:
LCD NodeMCU
VCC 3.3v
GND GND
SPI_MOSI D7 (GPIO13)
SPI_SCL D5 (GPIO14)
WR SD3 (GPIO10)
CS D1 (GPIO5)
RS D2 (GPIO4)
LCK SD2 (GPIO9)

I log in the setup() just before and after calling tft.begin(), I log
About to tft.begin():
and then I get:

ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1392, room 16
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld

and the NodeMCU restarts, This cycles continuously.
Is this a compatibility issue or do I have the wrong GPIO settings?

Thanks
Phil
2020-04-25 21:30:33 More info. I note that the documentation shows the following connections from the TFT display to the DFRduino M0:

TFT DFRduino M0
VCC 5v
GND GND
SPI_MOSI D11 (PWM4)
SPI_SCL D13 (PWM5)
WR D6 (PWM1)
CS D3 (SCL)
RS D5 (PWM0)
LCK D7 (I2S D1)

I'm very puzzled by these - I would have thought that SPI_SCL should connect to D3 (SCL) and SPI_MOSI should connect to D16 (SPI_MOSI). Please can someone explain these connections.

Phil
userHeadPic phil.shotton