initial try of custom type in config lib
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
// 3rdparty lib includes
|
// 3rdparty lib includes
|
||||||
|
#include <cpptypesafeenum.h>
|
||||||
#include <FastLED.h>
|
#include <FastLED.h>
|
||||||
|
|
||||||
// local includes
|
// local includes
|
||||||
@@ -23,12 +24,17 @@ enum Bobbycar_Side
|
|||||||
};
|
};
|
||||||
|
|
||||||
#ifdef FEATURE_OTA
|
#ifdef FEATURE_OTA
|
||||||
enum OtaAnimationModes
|
//enum OtaAnimationModes
|
||||||
{
|
//{
|
||||||
None,
|
// None,
|
||||||
GreenProgressBar,
|
// GreenProgressBar,
|
||||||
ColorChangeAll
|
// ColorChangeAll
|
||||||
};
|
//};
|
||||||
|
#define OtaAnimationModesValues(x) \
|
||||||
|
x(None) \
|
||||||
|
x(GreenProgressBar) \
|
||||||
|
x(ColorChangeAll)
|
||||||
|
DECLARE_TYPESAFE_ENUM(OtaAnimationModes, : uint8_t, OtaAnimationModesValues)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern std::vector<CRGB> leds;
|
extern std::vector<CRGB> leds;
|
||||||
|
@@ -23,13 +23,7 @@
|
|||||||
// local includes
|
// local includes
|
||||||
#include "ledstrip.h"
|
#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;
|
using namespace espconfig;
|
||||||
#define __CONFIG__START nullptr
|
|
||||||
|
|
||||||
std::string defaultHostname();
|
std::string defaultHostname();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user