aboutsummaryrefslogtreecommitdiff
path: root/software/effects.h
diff options
context:
space:
mode:
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