From 08ac5c891ce8c9af439915c6fbe2f4381071b251 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Fri, 24 May 2019 05:13:35 +0200 Subject: [PATCH] Added effects SingleDynamic and MultiDynamic. --- effects.h | 30 ++++++++++++++++++++++++++++++ pitrix.ino | 8 ++++++-- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/effects.h b/effects.h index 77efd60..8941234 100644 --- a/effects.h +++ b/effects.h @@ -266,3 +266,33 @@ class Animation : public Effect { return animation->delays[0]; } }; + +class SingleDynamic : public Effect { + protected: + static const int factor = 2; + static const int tile_count = LED_WIDTH/factor * LED_HEIGHT/factor; + CRGB tiles[tile_count]; + public: + SingleDynamic() { + for (int i=0; i