initial try of custom type in config lib
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
#include <vector>
|
||||
|
||||
// 3rdparty lib includes
|
||||
#include <cpptypesafeenum.h>
|
||||
#include <FastLED.h>
|
||||
|
||||
// local includes
|
||||
@ -23,12 +24,17 @@ enum Bobbycar_Side
|
||||
};
|
||||
|
||||
#ifdef FEATURE_OTA
|
||||
enum OtaAnimationModes
|
||||
{
|
||||
None,
|
||||
GreenProgressBar,
|
||||
ColorChangeAll
|
||||
};
|
||||
//enum OtaAnimationModes
|
||||
//{
|
||||
// None,
|
||||
// GreenProgressBar,
|
||||
// ColorChangeAll
|
||||
//};
|
||||
#define OtaAnimationModesValues(x) \
|
||||
x(None) \
|
||||
x(GreenProgressBar) \
|
||||
x(ColorChangeAll)
|
||||
DECLARE_TYPESAFE_ENUM(OtaAnimationModes, : uint8_t, OtaAnimationModesValues)
|
||||
#endif
|
||||
|
||||
extern std::vector<CRGB> leds;
|
||||
|
@ -23,13 +23,7 @@
|
||||
// local includes
|
||||
#include "ledstrip.h"
|
||||
|
||||
#define REMOVE_TRAILING_COMMA_N(_1,_2,_3,_4,_5,_6,_7,_8,_9,N,...) \
|
||||
REMOVE_TRAILING_COMMA_##N
|
||||
#define REMOVE_TRAILING_COMMA(...) \
|
||||
REMOVE_TRAILING_COMMA_N(__VA_ARGS__,9,8,7,6,5,4,3,2,1)(__VA_ARGS__)
|
||||
|
||||
using namespace espconfig;
|
||||
#define __CONFIG__START nullptr
|
||||
|
||||
std::string defaultHostname();
|
||||
|
||||
|
Reference in New Issue
Block a user