add all new miibands
Signed-off-by: dragonchaser <christian@boltares.de>
This commit is contained in:
@@ -31,9 +31,9 @@ void Vibrate();
|
|||||||
|
|
||||||
// LED configuration
|
// LED configuration
|
||||||
#define LED_TYPE WS2812B
|
#define LED_TYPE WS2812B
|
||||||
#define LED_DATA_PIN 1 // use 1 for GPIO 1 and 21 for builtin
|
#define LED_DATA_PIN 21 // 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_NUM_LEDS 1 // 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_COLOR_ORDER GRB // USE GRB for the onboard led and RGB for the chain
|
||||||
|
|
||||||
#define LED_BRIGHTNESS 64
|
#define LED_BRIGHTNESS 64
|
||||||
#define LED_BRIGHTNESS_DIMM 16
|
#define LED_BRIGHTNESS_DIMM 16
|
||||||
@@ -61,13 +61,15 @@ void Vibrate();
|
|||||||
|
|
||||||
// Use Serial interface for debugging true|false
|
// Use Serial interface for debugging true|false
|
||||||
#define USE_SERIAL true
|
#define USE_SERIAL true
|
||||||
|
#define SERIAL_SPEED 115200
|
||||||
|
|
||||||
// CONSTS
|
// CONSTS
|
||||||
static const PROGMEM std::map<String, String> overrideColors = {
|
static const PROGMEM std::map<String, String> overrideColors = {
|
||||||
{"36E898", "FF0000"}, // MiiBand Klaas
|
{"CE0324", "FF0000"}, // MiiBand neu Klaas -> neues miband 9 active grün
|
||||||
{"000000", "33FFA7"}, // Dat Swantje
|
{"36E898", "FF0000"}, // MiiBand alt Klaas -> altes miband 2 schwarz
|
||||||
{"000000", "0008FF"}, // Dem Hein
|
{"73F0C7", "33FFA7"}, // Dat Swantje -> neues miband 9 active hellblau/flieder
|
||||||
{"000000", "87FF2A"}, // Dat Noshka
|
{"315918", "0008FF"}, // Dem Hein -> neues miband 9 active weiss
|
||||||
|
{"338DE7", "87FF2A"}, // Dat Noshka -> neues miband 9 active schwarz
|
||||||
};
|
};
|
||||||
|
|
||||||
static const PROGMEM std::map<String, void*> blackList = {
|
static const PROGMEM std::map<String, void*> blackList = {
|
||||||
@@ -79,7 +81,7 @@ static const PROGMEM std::map<String, void*> blackList = {
|
|||||||
#define DEVICE_TYPE_PRIVATE_LAMP 3
|
#define DEVICE_TYPE_PRIVATE_LAMP 3
|
||||||
#define DEVICE_TYPE_AMULETT 4
|
#define DEVICE_TYPE_AMULETT 4
|
||||||
|
|
||||||
#define DEVICE_TYPE DEVICE_TYPE_PUBLIC_LAMP_WITH_DEFAULT_COLOR
|
#define DEVICE_TYPE DEVICE_TYPE_AMULETT
|
||||||
|
|
||||||
#ifndef DEVICE_TYPE
|
#ifndef DEVICE_TYPE
|
||||||
// WE DO NOT HAVE A DEVICETYPE, so we do not have any variables here
|
// WE DO NOT HAVE A DEVICETYPE, so we do not have any variables here
|
||||||
@@ -112,7 +114,11 @@ static const PROGMEM std::map<String, void*> blackList = {
|
|||||||
// WARNING: IF THIS LIST CONTAINS > 0 VALUES, NO OTHER DEVICES WILL BE ALLOWED
|
// WARNING: IF THIS LIST CONTAINS > 0 VALUES, NO OTHER DEVICES WILL BE ALLOWED
|
||||||
// IF THIS LIST IS EMPTY IT WILL NOT BE USED
|
// IF THIS LIST IS EMPTY IT WILL NOT BE USED
|
||||||
static const PROGMEM std::map<String, void*> whiteList = {
|
static const PROGMEM std::map<String, void*> 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
|
#define LED_DEFAULT_COLOR_ON CRGB::Black
|
||||||
|
|
||||||
@@ -123,7 +129,11 @@ static const PROGMEM std::map<String, void*> blackList = {
|
|||||||
// WARNING: IF THIS LIST CONTAINS > 0 VALUES, NO OTHER DEVICES WILL BE ALLOWED
|
// WARNING: IF THIS LIST CONTAINS > 0 VALUES, NO OTHER DEVICES WILL BE ALLOWED
|
||||||
// IF THIS LIST IS EMPTY IT WILL NOT BE USED
|
// IF THIS LIST IS EMPTY IT WILL NOT BE USED
|
||||||
static const PROGMEM std::map<String, void*> whiteList = {
|
static const PROGMEM std::map<String, void*> 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
|
#define LED_DEFAULT_COLOR_ON CRGB::Black
|
||||||
|
|
||||||
@@ -203,7 +213,7 @@ class AdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks {
|
|||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
if (USE_SERIAL) {
|
if (USE_SERIAL) {
|
||||||
Serial.begin(115200);
|
Serial.begin(SERIAL_SPEED);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (useVibro) {
|
if (useVibro) {
|
||||||
|
|||||||
Reference in New Issue
Block a user