diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-11-26 22:19:07 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-11-26 22:19:07 +0100 |
commit | e6fc8e8af4ff8bd2709eb4485ba1ba9beadd27a5 (patch) | |
tree | 9a70bd47b011304b270531a4d0f1e67cc622d8a4 /software/effects.h | |
parent | f9335ba20b0e950e9881749e9bc3006eacefc305 (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.h | 8 |
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 |