Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@skynettw
Last active December 25, 2017 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skynettw/3e96b0e3c29597d90a160cb317f049c9 to your computer and use it in GitHub Desktop.
Save skynettw/3e96b0e3c29597d90a160cb317f049c9 to your computer and use it in GitHub Desktop.
#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