LCD Scrolling Text with Arduino tutorial




Arduino Sketch

//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x3F,16,2);  // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup()
{
  lcd.init();                      // initialize the lcd
 
  // Print a message to the LCD.
  lcd.backlight();
  lcd.setCursor(0,0);
  lcd.print(" Happy New Year! 2018.Thanks for Watching ");
   
}


void loop()
{
   lcd.setCursor(16,1);
   lcd.autoscroll();    // Setea el display para scroll automatico
   lcd.print(" ");      // imprime un character en blanco
   delay(700);   
}

ความคิดเห็น