Added a config switch to enable temporal dithering. But at least for my setup something is too slow - it's flickering.
This commit is contained in:
parent
2f58fd14d0
commit
8c62a6f38b
@ -6,4 +6,5 @@ CRGB leds[LED_COUNT];
|
|||||||
void fastled_setup() {
|
void fastled_setup() {
|
||||||
FastLED.addLeds<LED_TYPE,DATA_PIN,COLOR_ORDER>(leds, LED_COUNT).setCorrection(TypicalLEDStrip);
|
FastLED.addLeds<LED_TYPE,DATA_PIN,COLOR_ORDER>(leds, LED_COUNT).setCorrection(TypicalLEDStrip);
|
||||||
FastLED.setBrightness(BRIGHTNESS);
|
FastLED.setBrightness(BRIGHTNESS);
|
||||||
|
FastLED.setDither(TEMPORAL_DITHERING);
|
||||||
};
|
};
|
||||||
|
@ -60,9 +60,9 @@ void loop() {
|
|||||||
if (current_effect->can_be_shown_with_clock()) {
|
if (current_effect->can_be_shown_with_clock()) {
|
||||||
effect_clock.loop(current_effect->clock_as_mask(), CRGB(0xFFFFFF), CRGB(0x000000));
|
effect_clock.loop(current_effect->clock_as_mask(), CRGB(0xFFFFFF), CRGB(0x000000));
|
||||||
}
|
}
|
||||||
|
|
||||||
FastLED.show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FastLED.show();
|
||||||
|
|
||||||
if (MONITOR_LOOP_TIMES && millis()-loop_started_at>=MONITOR_LOOP_TIME_THRESHOLD) {
|
if (MONITOR_LOOP_TIMES && millis()-loop_started_at>=MONITOR_LOOP_TIME_THRESHOLD) {
|
||||||
LOG("Core * Loop took "); LOG(millis()-loop_started_at); LOGln("ms.");
|
LOG("Core * Loop took "); LOG(millis()-loop_started_at); LOGln("ms.");
|
||||||
|
Loading…
Reference in New Issue
Block a user