From ff51afb1bc0037e4a529954d7e87e4b1599c12d3 Mon Sep 17 00:00:00 2001 From: dragonchaser Date: Mon, 14 Jul 2025 18:14:45 +0200 Subject: [PATCH] allow disabling serial, add missing comments Signed-off-by: dragonchaser --- btcontrol.ino | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/btcontrol.ino b/btcontrol.ino index bf93f56..7aaab4c 100644 --- a/btcontrol.ino +++ b/btcontrol.ino @@ -31,8 +31,8 @@ void Vibrate(); // LED configuration #define LED_TYPE WS2812B -#define LED_DATA_PIN 21 -#define LED_NUM_LEDS 1 +#define LED_DATA_PIN 21 // use 1 for GPIO 1 and 21 for builtin +#define LED_NUM_LEDS 1 // use 1 for builtin and whatever your count is for extern #define LED_COLOR_ORDER GRB // USE GRB for the onboard led and RGB for the chain #define LED_BRIGHTNESS 96 @@ -59,6 +59,8 @@ void Vibrate(); // TODO: add a table here that defines distance in meters for scenarios where the device is in plain sight #define MIN_RSSI_POWER -50 +#define USE_SERIAL false + // CONSTS const std::map overrideColors = { {"36E898", "FF0000"}, // MiiBand Klaas @@ -180,7 +182,9 @@ class AdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks { }; void setup() { - Serial.begin(115200); + if (USE_SERIAL) { + Serial.begin(115200); + } if (useVibro) { pinMode(VIBRO_PIN, OUTPUT);