add public lamp & public lamp with default color
Signed-off-by: dragonchaser <christian@boltares.de>
This commit is contained in:
@@ -73,16 +73,18 @@ static const PROGMEM std::map<String, void*> blackList = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define DEVICE_TYPE_PUBLIC_LAMP 1
|
#define DEVICE_TYPE_PUBLIC_LAMP 1
|
||||||
#define DEVICE_TYPE_PRIVATE_LAMP 2
|
#define DEVICE_TYPE_PUBLIC_LAMP_WITH_DEFAULT_COLOR 2
|
||||||
#define DEVICE_TYPE_AMULETT 3
|
#define DEVICE_TYPE_PRIVATE_LAMP 3
|
||||||
|
#define DEVICE_TYPE_AMULETT 4
|
||||||
|
|
||||||
#define DEVICE_TYPE DEVICE_TYPE_PRIVATE_LAMP
|
#define DEVICE_TYPE DEVICE_TYPE_PUBLIC_LAMP
|
||||||
|
|
||||||
#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
|
||||||
// to make sure the code compile fails
|
// to make sure the code compile fails
|
||||||
#error "DEVICE_TYPE is not defined"
|
#error "DEVICE_TYPE is not defined"
|
||||||
|
|
||||||
|
|
||||||
#elif DEVICE_TYPE == DEVICE_TYPE_PUBLIC_LAMP
|
#elif DEVICE_TYPE == DEVICE_TYPE_PUBLIC_LAMP
|
||||||
// This is a PUBLIC LAMP, no restrictions here
|
// This is a PUBLIC LAMP, no restrictions here
|
||||||
// Does not have a vibration motor
|
// Does not have a vibration motor
|
||||||
@@ -90,6 +92,15 @@ 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 = {};
|
||||||
|
#define LED_DEFAULT_COLOR_ON CRGB::Black
|
||||||
|
|
||||||
|
#elif DEVICE_TYPE == DEVICE_TYPE_PUBLIC_LAMP_WITH_DEFAULT_COLOR
|
||||||
|
// This is a PUBLIC LAMP with a default color, no other restrictions here
|
||||||
|
// Does not have a vibration motor
|
||||||
|
static const PROGMEM bool useVibro = false;
|
||||||
|
// 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<String, void*> whiteList = {};
|
||||||
#define LED_DEFAULT_COLOR_ON CRGB::DarkOrange
|
#define LED_DEFAULT_COLOR_ON CRGB::DarkOrange
|
||||||
|
|
||||||
#elif DEVICE_TYPE == DEVICE_TYPE_PRIVATE_LAMP
|
#elif DEVICE_TYPE == DEVICE_TYPE_PRIVATE_LAMP
|
||||||
|
|||||||
Reference in New Issue
Block a user