From 745b475d8bd02ef85f9f0ccc17f0a810ff5abbbd Mon Sep 17 00:00:00 2001 From: Eric Yu Date: Tue, 7 Jun 2022 14:51:51 -0700 Subject: [PATCH] Changed the baud rate from 9600 to 19200 Set your baudrate in Arduino to 19200. For platformio, if you want to read please manually type "pio device monitor --baud 19200" in a terminal. Be sure you have Platformio in your PATH --- ReadAnalog/src/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ReadAnalog/src/main.cpp b/ReadAnalog/src/main.cpp index e53c47c..6430b18 100644 --- a/ReadAnalog/src/main.cpp +++ b/ReadAnalog/src/main.cpp @@ -7,13 +7,12 @@ int i, j; unsigned long currTime; // non-blocking timer void setup() { - Serial.begin(9600); + Serial.begin(19200); currTime = millis(); } void loop() { if (millis() - currTime >= WAIT_TIME) { // non-blocking time delay - // Serial.println(); Serial.print("["); for (i = 0; i < sizeof(pins)/2; i++) { Serial.print(analogRead(pins[i])); @@ -24,5 +23,4 @@ void loop() { Serial.println("]"); currTime = millis(); } - -} \ No newline at end of file +}