Created
July 11, 2018 18:33
-
-
Save souhaiebtar/c41e7b696bc8183a2bd27ee4640220cb to your computer and use it in GitHub Desktop.
#arduino #esp8266 #wemosd1
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> | |
// 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