#include "Wire.h" | |
#include "LiquidCrystal_I2C.h" | |
LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7,3,POSITIVE); | |
void setup() { | |
Serial.begin(9600); | |
lcd.begin(16,2); | |
lcd.setCursor(0,0); | |
lcd.print("Hi, NKFUST!!"); | |
delay(1000); | |
lcd.setCursor(0,1); | |
lcd.print("Good Morning "); | |
delay(1000); | |
} | |
void loop() { | |
if (Serial.available()) { | |
delay(200); | |
lcd.clear(); | |
lcd.setCursor(0,0); | |
while (Serial.available()>0) { | |
lcd.write(Serial.read()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment