config: add new Configuration class to simplify handling json config update api
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include <Figments.h>
|
||||
#include "../Config.h"
|
||||
|
||||
class Power: public Figment, ConfigTaskMixin {
|
||||
public:
|
||||
@@ -27,7 +28,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void handleConfigChange(const InputEvent& event) override;
|
||||
void handleConfigChange(const Configuration& config) override;
|
||||
|
||||
void loop() override {
|
||||
ConfigTaskMixin::loop();
|
||||
|
Reference in New Issue
Block a user