aboutsummaryrefslogtreecommitdiff
path: root/software/effects.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-11-26 22:19:07 +0100
committerlonkaars <loek@pipeframe.xyz>2021-11-26 22:19:07 +0100
commite6fc8e8af4ff8bd2709eb4485ba1ba9beadd27a5 (patch)
tree9a70bd47b011304b270531a4d0f1e67cc622d8a4 /software/effects.h
parentf9335ba20b0e950e9881749e9bc3006eacefc305 (diff)
first animation done
- added variable length animations - added readme to software subdirectory - implemented first animation
Diffstat (limited to 'software/effects.h')
-rw-r--r--software/effects.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/software/effects.h b/software/effects.h
index cef66f2..9f7ec39 100644
--- a/software/effects.h
+++ b/software/effects.h
@@ -1,8 +1,9 @@
#pragma once
// slideshow config
-#define SLIDESHOW_SIZE (int) 2
-#define SLIDESHOW_DURATION (int) 5e3
+#define SLIDESHOW_SIZE (int) 3
+// uncomment for fixed slide length
+// #define SLIDESHOW_DURATION (int) 5e3
// definition of done sprint 3
void fx_roundabout (unsigned long relative_time, bool (*leds)[64]);
@@ -11,3 +12,6 @@ void fx_rainfall (unsigned long relative_time, bool (*leds)[64]);
// evil function pointer array
extern void ( * slideshow_effects [SLIDESHOW_SIZE] )( unsigned long relative_time, bool (*leds)[64] );
+#ifndef SLIDESHOW_DURATION
+extern unsigned long slideshow_lengths[SLIDESHOW_SIZE];
+#endif