From 2d5bc015fbd70befc08c2295630ff06770e9d7c8 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 19 Apr 2008 03:31:36 +0000 Subject: Adding LiquidCrystal library. --- .../examples/SerialDisplay/SerialDisplay.pde | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libraries/LiquidCrystal/examples/SerialDisplay/SerialDisplay.pde (limited to 'libraries/LiquidCrystal/examples/SerialDisplay') diff --git a/libraries/LiquidCrystal/examples/SerialDisplay/SerialDisplay.pde b/libraries/LiquidCrystal/examples/SerialDisplay/SerialDisplay.pde new file mode 100644 index 0000000..c1f405a --- /dev/null +++ b/libraries/LiquidCrystal/examples/SerialDisplay/SerialDisplay.pde @@ -0,0 +1,19 @@ +#include + +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()); + } + } +} -- cgit v1.2.3-18-g5258