allow disabling serial, add missing comments

Signed-off-by: dragonchaser <christian@boltares.de>
This commit is contained in:
dragonchaser
2025-07-14 18:14:45 +02:00
parent 48fb38b1a5
commit ff51afb1bc

View File

@@ -31,8 +31,8 @@ void Vibrate();
// LED configuration // LED configuration
#define LED_TYPE WS2812B #define LED_TYPE WS2812B
#define LED_DATA_PIN 21 #define LED_DATA_PIN 21 // use 1 for GPIO 1 and 21 for builtin
#define LED_NUM_LEDS 1 #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_COLOR_ORDER GRB // USE GRB for the onboard led and RGB for the chain
#define LED_BRIGHTNESS 96 #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 // 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 MIN_RSSI_POWER -50
#define USE_SERIAL false
// CONSTS // CONSTS
const std::map<String, String> overrideColors = { const std::map<String, String> overrideColors = {
{"36E898", "FF0000"}, // MiiBand Klaas {"36E898", "FF0000"}, // MiiBand Klaas
@@ -180,7 +182,9 @@ class AdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks {
}; };
void setup() { void setup() {
if (USE_SERIAL) {
Serial.begin(115200); Serial.begin(115200);
}
if (useVibro) { if (useVibro) {
pinMode(VIBRO_PIN, OUTPUT); pinMode(VIBRO_PIN, OUTPUT);