From c52fd50205f9a45b164e335a20147e8e5f90349d Mon Sep 17 00:00:00 2001 From: dragonchaser Date: Fri, 13 Mar 2026 09:58:06 +0100 Subject: [PATCH] add all new miibands Signed-off-by: dragonchaser --- btcontrol.ino | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/btcontrol.ino b/btcontrol.ino index 4e3276d..e7e5a9c 100644 --- a/btcontrol.ino +++ b/btcontrol.ino @@ -31,9 +31,9 @@ void Vibrate(); // LED configuration #define LED_TYPE WS2812B -#define LED_DATA_PIN 1 // use 1 for GPIO 1 and 21 for builtin -#define LED_NUM_LEDS 7 // use 1 for builtin and whatever your count is for extern -#define LED_COLOR_ORDER RGB // USE GRB for the onboard led and RGB for the chain +#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 64 #define LED_BRIGHTNESS_DIMM 16 @@ -61,13 +61,15 @@ void Vibrate(); // Use Serial interface for debugging true|false #define USE_SERIAL true +#define SERIAL_SPEED 115200 // CONSTS static const PROGMEM std::map overrideColors = { - {"36E898", "FF0000"}, // MiiBand Klaas - {"000000", "33FFA7"}, // Dat Swantje - {"000000", "0008FF"}, // Dem Hein - {"000000", "87FF2A"}, // Dat Noshka + {"CE0324", "FF0000"}, // MiiBand neu Klaas -> neues miband 9 active grün + {"36E898", "FF0000"}, // MiiBand alt Klaas -> altes miband 2 schwarz + {"73F0C7", "33FFA7"}, // Dat Swantje -> neues miband 9 active hellblau/flieder + {"315918", "0008FF"}, // Dem Hein -> neues miband 9 active weiss + {"338DE7", "87FF2A"}, // Dat Noshka -> neues miband 9 active schwarz }; static const PROGMEM std::map blackList = { @@ -79,7 +81,7 @@ static const PROGMEM std::map blackList = { #define DEVICE_TYPE_PRIVATE_LAMP 3 #define DEVICE_TYPE_AMULETT 4 -#define DEVICE_TYPE DEVICE_TYPE_PUBLIC_LAMP_WITH_DEFAULT_COLOR +#define DEVICE_TYPE DEVICE_TYPE_AMULETT #ifndef DEVICE_TYPE // WE DO NOT HAVE A DEVICETYPE, so we do not have any variables here @@ -112,7 +114,11 @@ static const PROGMEM std::map blackList = { // WARNING: IF THIS LIST CONTAINS > 0 VALUES, NO OTHER DEVICES WILL BE ALLOWED // IF THIS LIST IS EMPTY IT WILL NOT BE USED static const PROGMEM std::map whiteList = { - { "36E898", nullptr }, + { "36E898", nullptr }, // altes miiband klaas + { "CE0324", nullptr }, // neues grünes miband klaas + { "338DE7", nullptr }, // neues schwarzes miband noshka + { "73F0C7", nullptr }, // neues blaues/fliederfarbenes miiband swantje + { "315918", nullptr }, // neues weisses miiband hein }; #define LED_DEFAULT_COLOR_ON CRGB::Black @@ -123,7 +129,11 @@ static const PROGMEM std::map blackList = { // WARNING: IF THIS LIST CONTAINS > 0 VALUES, NO OTHER DEVICES WILL BE ALLOWED // IF THIS LIST IS EMPTY IT WILL NOT BE USED static const PROGMEM std::map whiteList = { - { "36E898", nullptr }, + { "36E898", nullptr }, // altes miiband klaas + { "CE0324", nullptr }, // neues grünes miband klaas + { "338DE7", nullptr }, // neues schwarzes miband noshka + { "73F0C7", nullptr }, // neues blaues/fliederfarbenes miiband swantje + { "315918", nullptr }, // neues weisses miiband hein }; #define LED_DEFAULT_COLOR_ON CRGB::Black @@ -203,7 +213,7 @@ class AdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks { void setup() { if (USE_SERIAL) { - Serial.begin(115200); + Serial.begin(SERIAL_SPEED); } if (useVibro) {