mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-04 15:24:12 +01:00
20 lines
268 B
Plaintext
20 lines
268 B
Plaintext
#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());
|
|
}
|
|
}
|
|
}
|