Hi! I have recently got a nodemcu v3 and a 16x2 lcd display with IC2 . I have written a code to display text on the display and its not showing . I have connected the SCL to D6 and SDA to D3. This is my code
You informed that you called:
SCL to D6 and SDA to D3.
But in the code it looks like this: Wire.begin(D6, D3);
wire begin is like this: Wire.begin(SDA, SCL); ,
Ref: "Libraries — ESP8266 Arduino Core 3.1.2-21-ga348833 documentation
So you are swapping SDA with SCL in your project.
Correct: Wire.begin(D3, D6);