diff --git a/platformio.ini b/platformio.ini index 5414013..976d5a7 100644 --- a/platformio.ini +++ b/platformio.ini @@ -11,8 +11,10 @@ ; All envs [env] framework = arduino +monitor_speed = 1000000 build_flags = -D SERIAL_RX_BUFFER_SIZE=128 + -D BAUD=1000000 ; Specifically uno [env:uno] diff --git a/src/main.cpp b/src/main.cpp index 040cafe..684e86c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -9,7 +9,7 @@ ws2812b strip; grb pixels[NUM_LEDS] = {}; void setup() { - Serial.begin(9600); + Serial.begin(BAUD); // baud is defined at build time Serial.println("\nResetting!"); strip.clear(NUM_LEDS);