- Sat May 13, 2017 1:03 pm
#65893
I have a 1.8" TFT screen that I've been able to hook up to my NodeMCU 1.0 board and get working. The TFT_eSPI library is really fast. However, now I want to hookup up an I2C device, but I can't seem to get it working. I had it working before, but once I initialize the TFT library, nothing shows up on my logic analyzer. Here is how I have it setup:
TFT_eSPI:
SCK - D5
MOSI - D7
TFT_CS - D8
D/C - D3
RESET - RST
And for SPI, I'm trying to use pins D1 and D2:
#define SDA_PIN D2
#define SCL_PIN D1
Wire.begin(SDA_PIN, SCL_PIN);
As I mentioned above, I had SPI working just fine on these two pins before I setup the TFT library. Has anyone else seen this?
Thanks,
-- John