Skip to content

Commit 8b72902

Browse files
Matthew KellerMatthew Keller
Matthew Keller
authored and
Matthew Keller
committed
arduino display has waiting message
1 parent 8692e47 commit 8b72902

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules/
1+
node_modules/
2+
.vscode/

Diff for: Arduino/ArduinoTextDisplay/ArduinoTextDisplay.ino

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#include <LiquidCrystal.h>
1+
// #include <LiquidCrystal.h>
2+
#include "LiquidCrystal.h"
23

34
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
45

@@ -7,7 +8,7 @@ void setup() {
78
Serial.begin(9600);
89
lcd.begin(16, 2);
910
lcd.setCursor(0, 0);
10-
//lcd.print("Waiting...");
11+
lcd.print("Waiting...");
1112
delay(1000);
1213
}
1314

@@ -16,6 +17,9 @@ void loop() {
1617
// Read the incoming data
1718
char data = Serial.read();
1819
// Check if the received character is a space or newline
20+
Serial.print("data:\t");
21+
Serial.print(data);
22+
Serial.print("\n");
1923
if (data == ' ' || data == '\n') {
2024
// Clear the LCD
2125
lcd.clear();
@@ -25,5 +29,7 @@ void loop() {
2529
lcd.scrollDisplayLeft();
2630
delay(400);
2731
}
32+
} else {
33+
Serial.print("Serial not available");
2834
}
2935
}

0 commit comments

Comments
 (0)