Created
February 28, 2014 17:41
-
-
Save AdamLoi/9275746 to your computer and use it in GitHub Desktop.
LCD Display and ATtiny85
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 <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