Added "Effect" AM_STATIC ("static") and some more colors.

This commit is contained in:
2021-01-08 22:22:06 +01:00
parent 40efeee436
commit 8fe03313ac
3 changed files with 8 additions and 4 deletions

View File

@ -216,10 +216,9 @@ void loop() {
nodes[0]->blend_to(((millis() / 1000) % 2 == 0) ? CRGB::Black : color, 0, 64);
}
} else if (active_mode == AM_OFF) {
LOGln("Blanking.");
} else if (active_mode == AM_OFF || active_mode == AM_STATIC) {
for(Node* node : nodes) {
node->set_color(CRGB::Black);
node->set_color(active_mode == AM_OFF ? CRGB::Black : color);
node->draw();
}
} else { // This includes AM_ERROR