move consts to PROGMEM
Signed-off-by: dragonchaser <christian@boltares.de>
This commit is contained in:
@@ -60,14 +60,15 @@ 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
|
||||||
|
|
||||||
|
// Use Serial interface for debugging true|false
|
||||||
#define USE_SERIAL false
|
#define USE_SERIAL false
|
||||||
|
|
||||||
// CONSTS
|
// CONSTS
|
||||||
const std::map<String, String> overrideColors = {
|
static const PROGMEM std::map<String, String> overrideColors = {
|
||||||
{"36E898", "FF0000"}, // MiiBand Klaas
|
{"36E898", "FF0000"}, // MiiBand Klaas
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::map<String, void*> blackList = {
|
static const PROGMEM std::map<String, void*> blackList = {
|
||||||
//{ "36E898", nullptr },
|
//{ "36E898", nullptr },
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -75,7 +76,7 @@ const std::map<String, void*> blackList = {
|
|||||||
#define DEVICE_TYPE_PRIVATE_LAMP 2
|
#define DEVICE_TYPE_PRIVATE_LAMP 2
|
||||||
#define DEVICE_TYPE_AMULETT 3
|
#define DEVICE_TYPE_AMULETT 3
|
||||||
|
|
||||||
#define DEVICE_TYPE DEVICE_TYPE_PUBLIC_LAMP
|
#define DEVICE_TYPE DEVICE_TYPE_PRIVATE_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
|
||||||
@@ -85,19 +86,19 @@ const std::map<String, void*> blackList = {
|
|||||||
#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
|
||||||
static const bool useVibro = false;
|
static const PROGMEM bool useVibro = false;
|
||||||
// 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 std::map<String, void*> whiteList = {};
|
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
|
||||||
// This is a PRIVATE LAMP, restricted to a list of users
|
// This is a PRIVATE LAMP, restricted to a list of users
|
||||||
// Does not have a vibration motor
|
// Does not have a vibration motor
|
||||||
static const bool useVibro = false;
|
static const PROGMEM bool useVibro = false;
|
||||||
// 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 std::map<String, void*> whiteList = {
|
static const PROGMEM std::map<String, void*> whiteList = {
|
||||||
{ "36E898", nullptr },
|
{ "36E898", nullptr },
|
||||||
};
|
};
|
||||||
#define LED_DEFAULT_COLOR_ON CRGB::Black
|
#define LED_DEFAULT_COLOR_ON CRGB::Black
|
||||||
@@ -108,7 +109,7 @@ const std::map<String, void*> blackList = {
|
|||||||
static const bool useVibro = true;
|
static const bool useVibro = true;
|
||||||
// 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 std::map<String, void*> whiteList = {
|
static const PROGMEM std::map<String, void*> whiteList = {
|
||||||
{ "36E898", nullptr },
|
{ "36E898", nullptr },
|
||||||
};
|
};
|
||||||
#define LED_DEFAULT_COLOR_ON CRGB::Black
|
#define LED_DEFAULT_COLOR_ON CRGB::Black
|
||||||
|
|||||||
Reference in New Issue
Block a user