Skip to content

Instantly share code, notes, and snippets.

@ArthurGuy
Created June 16, 2014 13:31
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 ArthurGuy/bbe7364a45f848cac10f to your computer and use it in GitHub Desktop.
Save ArthurGuy/bbe7364a45f848cac10f to your computer and use it in GitHub Desktop.
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x20, 2, 1, 0, 4, 5, 6, 7, 3, NEGATIVE);
void setup()
{
lcd.begin(8,2);
lcd.home();
lcd.print("Hello");
lcd.setCursor ( 0, 1 );
lcd.print("World");
//If the display has a backlight toggle it on and off
lcd.setBacklight(true);
delay(1000);
lcd.setBacklight(false);
}
void loop()
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment