From 1cd94ac4ae5a1b79fed2c7a55b52335fe14b3a5d Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Wed, 25 Sep 2019 06:33:26 +0200 Subject: [PATCH] Effect swirl is now shown with clock. --- include/effect_twirl.h | 2 ++ src/effect_twirl.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/include/effect_twirl.h b/include/effect_twirl.h index 7e13f9b..0a5cdf1 100644 --- a/include/effect_twirl.h +++ b/include/effect_twirl.h @@ -12,6 +12,8 @@ private: double _real_center_y = LED_HEIGHT / 2; public: void loop(); + boolean can_be_shown_with_clock() override; + boolean clock_as_mask() override; }; #endif diff --git a/src/effect_twirl.cpp b/src/effect_twirl.cpp index 91dab93..aaa9065 100644 --- a/src/effect_twirl.cpp +++ b/src/effect_twirl.cpp @@ -1,6 +1,9 @@ #include "effect_twirl.h" #include "functions.h" +boolean TwirlEffect::can_be_shown_with_clock() { return true; }; +boolean TwirlEffect::clock_as_mask() { return true; }; + void TwirlEffect::loop() { double center_x = _real_center_x; // - (cos8(_center_offset_angle)>>6); double center_y = _real_center_y; // + (sin8(_center_offset_angle)>>6);