Skip to content

Instantly share code, notes, and snippets.

@AdamLoi
Created February 28, 2014 17:41
Show Gist options
  • Save AdamLoi/9275746 to your computer and use it in GitHub Desktop.
Save AdamLoi/9275746 to your computer and use it in GitHub Desktop.
LCD Display and ATtiny85
#include <TinyWireM.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x20,16,2); // set address & 16 chars / 2 lines
void setup()
{
TinyWireM.begin(); // initialize I2C lib
lcd.init(); // initialize the lcd
lcd.backlight();
lcd.clear(); // Print a message to the LCD.
}
void loop()
{
lcd.setCursor(0, 0);
lcd.print("GRobotronics.com");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment