From 436a7b3ad01a92f2ee0c1b46a93954983ec61d0f Mon Sep 17 00:00:00 2001 From: Jonas_Jones Date: Sun, 8 Sep 2024 19:54:51 +0200 Subject: [PATCH] Add serial debug code --- debug.ino | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 debug.ino diff --git a/debug.ino b/debug.ino new file mode 100644 index 0000000..fd384ee --- /dev/null +++ b/debug.ino @@ -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 + } +}