aboutsummaryrefslogtreecommitdiff
path: root/libraries/LiquidCrystal/examples/SerialDisplay/SerialDisplay.pde
blob: c1f405a4b32d96d535abfe3110341822b21a44d8 (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, 2, 7, 8, 9, 10);

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

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