Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#arduino #esp8266 #wemosd1
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// Address,EN,RW , RS, D4,D5,D6,D7,BackLight,BL_Polarity
//LiquidCrystal_I2C lcd1(0x26, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
LiquidCrystal_I2C lcd2(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
void setup()
{
lcd2.begin(16,2);
lcd2.backlight();
lcd2.print("LCD 16 x 2");
lcd2.setCursor(0,1);
lcd2.print("I2C Address 0x3F");
delay(2000);
lcd2.noDisplay();
delay(2000);
lcd2.display();
lcd2.setCursor(0,1);
lcd2.print("I2C Address 0x27");
}
void loop()
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.