Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // C++ code
- //
- #include<LiquidCrystal.h>
- const int PIN_RS = 13;
- const int PIN_E = 12;
- const int PIN_DB4 = 7;
- const int PIN_DB5 = 6;
- const int PIN_DB6 = 5;
- const int PIN_DB7 = 4;
- LiquidCrystal lcd(PIN_RS,PIN_E,PIN_DB4,PIN_DB5,PIN_DB6,PIN_DB7);
- void setup (){
- lcd.begin(16,2);
- }
- void loop(){
- lcd.clear();
- lcd.setCursor(3,0);
- lcd.print("Hi!");
- lcd.setCursor(0,1);
- lcd.print("Learn about Arduino");
- delay(5000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement