aboutsummaryrefslogtreecommitdiff
path: root/software/effects.ino
diff options
context:
space:
mode:
Diffstat (limited to 'software/effects.ino')
-rw-r--r--software/effects.ino5
1 files changed, 5 insertions, 0 deletions
diff --git a/software/effects.ino b/software/effects.ino
index 0768fb8..0fc776a 100644
--- a/software/effects.ino
+++ b/software/effects.ino
@@ -21,6 +21,11 @@ void fx_roundabout (unsigned long relative_time, bool (*leds)[64]) {
#define FX_LEN_WIPEXYZ 6e3
void fx_wipexyz (unsigned long relative_time, bool (*leds)[64]) {
+ memset(leds, 0, sizeof(leds));
+ unsigned long tick = relative_time / 200;
+ unsigned int direction = (tick / 6) % 3;
+
+ fill_plane(direction, zigzag(4, tick));
return;
}