From 8c62a6f38bb64ddf5a0e8e3e377479010b1d4d37 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Thu, 30 May 2019 00:54:57 +0200 Subject: [PATCH] Added a config switch to enable temporal dithering. But at least for my setup something is too slow - it's flickering. --- src/fastled.cpp | 1 + src/pitrix.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fastled.cpp b/src/fastled.cpp index a6784cc..144842c 100644 --- a/src/fastled.cpp +++ b/src/fastled.cpp @@ -6,4 +6,5 @@ CRGB leds[LED_COUNT]; void fastled_setup() { FastLED.addLeds(leds, LED_COUNT).setCorrection(TypicalLEDStrip); FastLED.setBrightness(BRIGHTNESS); + FastLED.setDither(TEMPORAL_DITHERING); }; diff --git a/src/pitrix.cpp b/src/pitrix.cpp index f7deaed..2283d06 100644 --- a/src/pitrix.cpp +++ b/src/pitrix.cpp @@ -60,9 +60,9 @@ void loop() { if (current_effect->can_be_shown_with_clock()) { 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) { LOG("Core * Loop took "); LOG(millis()-loop_started_at); LOGln("ms.");