diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index b347586..be3e06a 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -20,6 +20,7 @@ set(headers changevaluedisplay_unifiedmodelmode.h cloud.h cloudtexthelpers.h + configutils_bobby.h controller.h debugcolorhelpers.h debuginputhandler.h @@ -249,6 +250,7 @@ set(sources changevaluedisplay_unifiedmodelmode.cpp cloud.cpp cloudtexthelpers.cpp + configwrapper_bobby.cpp controller.cpp debugcolorhelpers.cpp debuginputhandler.cpp diff --git a/main/configutils_bobby.h b/main/configutils_bobby.h new file mode 100644 index 0000000..2f242d8 --- /dev/null +++ b/main/configutils_bobby.h @@ -0,0 +1,10 @@ +#pragma once +#include "sdkconfig.h" + +// 3rdparty lib includes +#include + +// local includes +#include "ledstrip.h" + +IMPLEMENT_NVS_GET_SET_ENUM(OtaAnimationModes) diff --git a/main/configwrapper_bobby.cpp b/main/configwrapper_bobby.cpp new file mode 100644 index 0000000..62b5412 --- /dev/null +++ b/main/configwrapper_bobby.cpp @@ -0,0 +1,7 @@ +#include "sdkconfig.h" + +#include "configutils_bobby.h" +#define CONFIGWRAPPER_TOSTRING_USINGS using ::toString; +#include + +INSTANTIATE_CONFIGWRAPPER_TEMPLATES(OtaAnimationModes)