mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-16 18:05:05 +01:00
move pixel code to plugin
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include <plugins/OtaTcpPlugin.cpp>
|
||||
#include <plugins/WebServerPlugin.cpp>
|
||||
#include <plugins/WebConfigPlugin.cpp>
|
||||
#include "PixelPlugin.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace std::placeholders;
|
||||
@@ -34,11 +35,8 @@ class IlluCat : public MeshSprocket {
|
||||
addPlugin(new OtaTcpPlugin(otaCfg));
|
||||
addPlugin(new WebServerPlugin(webCfg, server));
|
||||
addPlugin(new WebConfigPlugin(server));
|
||||
|
||||
pixels->begin();
|
||||
pixels->setBrightness(pixelConfig.brightness);
|
||||
animation.set(TASK_MILLISECOND * pixelConfig.updateInterval, TASK_FOREVER, bind(&IlluCat::animate, this));
|
||||
addTask(animation);
|
||||
addPlugin(new PixelPlugin(pixelConfig, pixels));
|
||||
|
||||
scanningAnimation();
|
||||
}
|
||||
void scanningAnimation() {
|
||||
|
||||
Reference in New Issue
Block a user