LCD CODE FOR ARDUINO

 LCD CODE FOR ARDUINO


DIAGRAM


CODE

#include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup() {
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello, world!");
}
void loop() {
lcd.setCursor(0, 10);
lcd.print(millis() / 1000);
}

Post a Comment

Previous Post Next Post

Contact Form