diff options
author | David A. Mellis <d.mellis@arduino.cc> | 2008-04-19 03:31:36 +0000 |
---|---|---|
committer | David A. Mellis <d.mellis@arduino.cc> | 2008-04-19 03:31:36 +0000 |
commit | 2d5bc015fbd70befc08c2295630ff06770e9d7c8 (patch) | |
tree | 0b2b41ab905ce47067d3365861aced34f89caa9c /libraries/LiquidCrystal/examples/SerialDisplay | |
parent | e8465fbb4500ed3968e7a06c2d75a5b3f1841b8e (diff) |
Adding LiquidCrystal library.
Diffstat (limited to 'libraries/LiquidCrystal/examples/SerialDisplay')
-rw-r--r-- | libraries/LiquidCrystal/examples/SerialDisplay/SerialDisplay.pde | 19 |
1 files changed, 19 insertions, 0 deletions
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.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()); + } + } +} |