sinematrix3 will now be shown with a masked clock.

This commit is contained in:
2019-05-23 22:14:15 +02:00
parent 0e82f94846
commit 427faf280e
3 changed files with 34 additions and 36 deletions

View File

@ -65,8 +65,6 @@ void setup() {
ntp_setup();
mqtt_setup();
Serial.println("Core * Setup complete");
clock.setEffects(&effects[0]);
}
Effect* current_effect = &clock;
@ -99,9 +97,12 @@ void loop() {
EVERY_N_MILLISECONDS(1000 / FPS) {
Serial.println("Core * loop running");
//Serial.printf("Core * current_effect: %p\n", (void *)&current_effect);
current_effect->loop();
if (current_effect->can_be_shown_with_clock()) {
clock.loop(current_effect->clock_as_mask(), CRGB(0xFFFFFF), CRGB(0x000000));
}
FastLED.show();
}