Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Wire.h>
- #include <LiquidCrystal_I2C.h>
- // Set the LCD address to 0x27 for a 16 chars and 2 line display
- LiquidCrystal_I2C lcd(0x27, 16, 2);
- void setup()
- {
- // initialize the LCD
- lcd.begin();
- // Turn on the blacklight and print a message.
- lcd.backlight();
- lcd.print("Hello, world!");
- }
- void loop()
- {
- lcd.clear();
- delay(20);
- for (int i=0; i<16; i++)
- {
- lcd.setCursor (i,0);
- lcd.print ("and i oop");
- lcd.setCursor (i,1);
- lcd.scrollDisplayLeft();
- lcd.print ("skskskkskskks");
- delay (500);
- lcd.clear();
- }
- //lcd.scrollDisplayRight ();
- // lcd.autoscroll ();
- //lcd.print ("Suarez");
- // delay (50);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement