aboutsummaryrefslogtreecommitdiff
path: root/libraries/LiquidCrystal/examples/SerialDisplay/SerialDisplay.pde
blob: 6e4336c9af0303d09e3656d040da394ef6180332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);

void setup()
{
  Serial.begin(9600);
}

void loop()
{
  if (Serial.available()) {
    delay(100);
    lcd.clear();
    while (Serial.available() > 0) {
      lcd.write(Serial.read());
    }
  }
}