Skip to content

Instantly share code, notes, and snippets.

@taesamja
Created October 13, 2016 05:31
Show Gist options
  • Save taesamja/7965c40fceb66fbf99d08a6d6fab7733 to your computer and use it in GitHub Desktop.
Save taesamja/7965c40fceb66fbf99d08a6d6fab7733 to your computer and use it in GitHub Desktop.
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 10, 11, 12, 13);//RS,EN,D4,D5,D6,D7
void setup() {
lcd.begin(16, 2);
Serial.begin(9600);
}
void loop() {
if (Serial.available()) {
delay(100);
lcd.clear();
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