Add serial debug code

This commit is contained in:
Jonas_Jones 2024-09-08 19:54:51 +02:00 committed by GitHub
parent f1d1526f38
commit 436a7b3ad0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

10
debug.ino Normal file
View file

@ -0,0 +1,10 @@
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
if (Serial.available() > 0) { // Check if data is available to read
char receivedChar = Serial.read(); // Read the incoming byte
Serial.print(receivedChar); // Echo the byte back over Serial
}
}