From 678d0dbe8a24284ddd856c8033ce079a27fc97b5 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Fri, 24 May 2019 06:25:22 +0200 Subject: [PATCH] Added effect Matrix. Closes #7. --- effects.h | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ pitrix.ino | 6 +++-- 2 files changed, 73 insertions(+), 2 deletions(-) diff --git a/effects.h b/effects.h index 8941234..c881c8c 100644 --- a/effects.h +++ b/effects.h @@ -296,3 +296,72 @@ class MultiDynamic : public SingleDynamic { for (int i=0; i window->h) running = false; + } + + void draw() { + for(int i=0; i speed) { + advance(); + last_move = millis(); + } + + draw(); + } + } +}; + +class MatrixEffect : public Effect { + private: + MatrixColumn columns[LED_WIDTH]; + public: + boolean can_be_shown_with_clock() { return true; }; + MatrixEffect() { + for (int i=0; i