This commit is contained in:
2018-10-01 01:34:40 +02:00
parent 83384a8a7b
commit 62e1dfe91b

View File

@@ -47,8 +47,8 @@ class PixelPlugin : public Plugin {
void setState(String msg) { void setState(String msg) {
PRINT_MSG(Serial, SPROCKET_TYPE, msg.c_str()); PRINT_MSG(Serial, SPROCKET_TYPE, msg.c_str());
state.fromJsonString(msg); state.fromJsonString(msg);
pixels->setBrightness(state.brightness); //pixels->setBrightness(state.brightness);
pixels->ColorSet(state.color); //pixels->ColorSet(state.color);
pixels->Index = 0; pixels->Index = 0;
pixels->Color1 = state.color; pixels->Color1 = state.color;
pixels->Color2 = state.color2; pixels->Color2 = state.color2;