From 21c0f1fdf7739b3bbe49eeda092539aeddb18029 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Sun, 26 May 2019 00:30:47 +0200 Subject: [PATCH] SingleDynamic and MultiDynamic: Now with fading between the frames, better timing and a bit more saturation. --- effects.h | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/effects.h b/effects.h index 709785d..5b5ef6c 100644 --- a/effects.h +++ b/effects.h @@ -272,29 +272,39 @@ class SingleDynamic : public Effect { protected: static const int factor = 2; static const int tile_count = LED_WIDTH/factor * LED_HEIGHT/factor; + virtual int getLoopTime() { return 200; } CRGB tiles[tile_count]; + CRGB old_tiles[tile_count]; + uint8_t blend = 0; public: SingleDynamic() { - for (int i=0; i