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
This commit is contained in:
Eric Yu 2022-06-07 14:51:51 -07:00 committed by GitHub
parent d46ea9d5a5
commit 745b475d8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -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();
}
}