Skip to content

Instantly share code, notes, and snippets.

@souhaiebtar
Created July 11, 2018 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save souhaiebtar/c41e7b696bc8183a2bd27ee4640220cb to your computer and use it in GitHub Desktop.
Save souhaiebtar/c41e7b696bc8183a2bd27ee4640220cb to your computer and use it in GitHub Desktop.
#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