Created
February 24, 2021 16:04
-
-
Save elktros/0aaaaf28f5a9433c73cff48f506cbf76 to your computer and use it in GitHub Desktop.
Display text on I2C LCD using ESP8266 NodeMCU.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
LiquidCrystal_I2C lcd(0x3F, 16, 2); | |
void setup() | |
{ | |
lcd.init(); | |
lcd.backlight(); | |
lcd.setCursor(0,0); | |
lcd.print(" I2C LCD with "); | |
lcd.setCursor(0,1); | |
lcd.print("ESP8266 NodeMCU"); | |
} | |
void loop() | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
which pin is data and which pin is clock? also which LiquidCrystal_I2C library are you using & have you made any modifications?
There are 8 million LiquidCrystal_I2C libraries out there & ESP8266 doesn't support I2C in hardware so it's bit banged by default, I've been seeing people using D4 for SDA and D5 for SCL but which board package, which library I have no idea.