Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <LiquidCrystal_I2C.h>
- LiquidCrystal_I2C lcd(0x27,16,2);
- void setup() {
- // put your setup code here, to run once:
- lcd.init();
- lcd.backlight();
- lcd.setCursor(0,0);
- lcd.print("HI");
- lcd.setCursor(0,1);
- lcd.print("World");
- lcd.cursor();
- lcd.blink();
- lcd.setCursor(8,1);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- for(int i = 0;i<16;i++)
- {
- lcd.scrollDisplayRight();
- delay(500);
- }
- for(int i = 0;i<16;i++)
- {
- lcd.scrollDisplayLeft();
- delay(500);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement