Last active
December 25, 2017 02:36
-
-
Save skynettw/3e96b0e3c29597d90a160cb317f049c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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