Fixed MQTT stuff.
This commit is contained in:
@ -77,7 +77,7 @@ void setup_fastled() {
|
||||
FastLED.addLeds<WS2812B, 5, GRB>(leds, LEDS_PER_CORNER * CORNERS_PER_PART * NODE_COUNT).setCorrection(TypicalLEDStrip);
|
||||
LOGln("LEDs: %3d", LED_COUNT);
|
||||
FastLED.setBrightness(255);
|
||||
FastLED.setDither(DISABLE_DITHER);
|
||||
//FastLED.setDither(DISABLE_DITHER);
|
||||
FastLED.setMaxPowerInVoltsAndMilliamps(5, MAX_MILLIAMPS);
|
||||
set_all_leds(CRGB::Black);
|
||||
}
|
||||
@ -195,14 +195,19 @@ void loop() {
|
||||
}
|
||||
|
||||
} else if (active_mode == AM_OFF) {
|
||||
LOGln("Blanking.");
|
||||
for(Node* node : nodes) {
|
||||
node->set_color(CRGB::Black);
|
||||
node->draw();
|
||||
}
|
||||
} else { // This includes AM_ERROR
|
||||
for(Node* node : nodes) {
|
||||
node->set_color(CRGB::Black);
|
||||
}
|
||||
nodes[0]->set_color(CRGB::Red);
|
||||
for(Node* node : nodes) {
|
||||
node->draw();
|
||||
}
|
||||
}
|
||||
|
||||
last_loop = millis();
|
||||
|
Reference in New Issue
Block a user