Skip to content

Instantly share code, notes, and snippets.

@kestel
Last active February 12, 2017 18:27
Show Gist options
  • Save kestel/e84115c556d0555d700b3b15804b4361 to your computer and use it in GitHub Desktop.
Save kestel/e84115c556d0555d700b3b15804b4361 to your computer and use it in GitHub Desktop.

Revisions

  1. kestel revised this gist Feb 12, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions esp8266_i2c_lcd.ino
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    // Library https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library
    // Original from https://gist.github.com/bavensky/8cc772149df9e349014b

    #include <Wire.h>
    #include <LiquidCrystal_I2C.h>
  2. kestel renamed this gist Feb 12, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. kestel created this gist Feb 12, 2017.
    26 changes: 26 additions & 0 deletions esp8266_i2c_lcd
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    // Library https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library

    #include <Wire.h>
    #include <LiquidCrystal_I2C.h>

    LiquidCrystal_I2C lcd(0x27,20,4);

    uint8_t heart[8] = {0x0,0xa,0x1f,0x1f,0xe,0x4,0x0};

    void setup() {
    lcd.begin();
    lcd.backlight();
    lcd.createChar(1, heart);
    }

    void loop() {
    lcd.home();
    lcd.print("Welcome to my world!");
    lcd.setCursor(2, 1);
    lcd.write(byte(1));
    lcd.print(" ESP8266 with");
    lcd.setCursor(0, 2);
    lcd.print(" LiquidCrystal I2C ");
    lcd.setCursor(0, 3);
    lcd.print("4th line");
    }