ขอบคุณครับ
โค้ด
#include น้อยกว่าLiquidCrystal.hมากกว่า
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd (12, 11, 5, 4, 3, 2);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
}
void loop() {
lcd.setCursor(0, 0);
// set the display to automatically scroll:
// print from 0 to 9:
for (int thisChar = 0; thisChar น้อยกว่า 10; thisChar++) {
lcd.print(thisChar);
delay(500);
}
lcd.setCursor(16, 1);
// print from 0 to 9:
lcd.autoscroll();
for (int thisChar = 0; thisChar น้อยกว่า10; thisChar++) {
lcd.print(thisChar);
delay(500);
}
lcd.noAutoscroll();
lcd.clear();
}