Arduino LCD 16x2 Both Line Text


LCD Serial Monitor 
 Wire up everything and get started for coding.
 #include   LiquidCrystal lcd(12, 11, 5, 4, 3, 2);  
 void setup() {
 lcd.begin(16, 2); 
 lcd.print("Upper Line Text");
 lcd.setCursor(0, 1); 
 lcd.print("Lower Line Text " ); 
 delay(4000); lcd.clear(); 
 lcd.print("Another Text");
 lcd.setCursor(0, 1); 
 lcd.print("Lower Line"); 
 delay(4000); 
 lcd.clear(); }
   void loop() {
 lcd.begin(16, 2);   
 lcd.print("Upper Line Text");   
 lcd.setCursor(0, 1);  
 lcd.print("Lower Line Text " );   
 delay(4000);   lcd.clear();  
 lcd.print("Another Text");   
 lcd.setCursor(0, 1);  
 lcd.print("Lower Line");  
 delay(4000);  
 lcd.clear();
 } 
   For Only upper or lower line,  leave one line blank. Thanks.

Comments

  1. JT: Casino & Sportsbook - Las Vegas NV
    JTG 경상남도 출장마사지 Hotel 하남 출장마사지 and Casino 군산 출장안마 offers Las Vegas style sports betting action, live entertainment, delicious dining 춘천 출장마사지 and a 경상북도 출장안마 relaxing spa experience. Book direct to save!

    ReplyDelete

Post a Comment