aboutsummaryrefslogtreecommitdiff
path: root/software/effects.h
blob: 9f7ec394fbb5a40f9a5d31618b4013bdf2b69070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

// slideshow config
#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]);
void fx_wipexyz    (unsigned long relative_time, bool (*leds)[64]);
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