Introduction: Running Text With Arduino
Tool and material:
1 item LCD 16x2
1 item resistor 220 ohm
1 item potensio meter 1k ohm
1 item protoboard
1 item arduino
Some of cable jumper
Step 1: Syntax for Running Text With Arduino Are
#include
/* - lcd rs pin ke digital pin 12
- lcd enable pin ke digital pin 11
- lcd d4 pin ke digital pin 5
- lcd d5 pin ke digital pin 4
- lcd d6 pin ke digital pin 3
- lcd d7 pin ke digital pin 2
*/ LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
lcd.begin(16, 2);
}
void loop() {
int i;
lcd.print("Sekolah Tinggi Teknologi Nusa Putra");
lcd.setCursor(0, 0); for (i = 0 ; i < 16; i ++) {
lcd.scrollDisplayLeft(); delay(300); }
}