btdat2506

Code chuyển chữ

Oct 26th, 2021 (edited)
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <LiquidCrystal.h>
  2.  
  3. LiquidCrystal lcd(9, 8, 7, 6, 5, 4);
  4.  
  5. void setup()
  6. {
  7.   lcd.begin(16, 2);
  8.   lcd.setCursor(0, 0);
  9.   lcd.print("DIEN TU");
  10. }
  11.  
  12. void loop()
  13. {
  14.     delay(300);
  15.     for (int i = 0; i < 9; i++) {
  16.         lcd.scrollDisplayRight();
  17.         delay(300);
  18.     }
  19.     for (int i = 0; i < 9; i++) {
  20.         lcd.scrollDisplayLeft();
  21.         delay(300);
  22.     }
  23. }
  24.  
Add Comment
Please, Sign In to add comment