diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2016-04-24 13:46:19 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2016-04-24 13:46:19 +0300 |
commit | c95b17b536b4437f001d5f5e8a54753969e36bb2 (patch) | |
tree | d944e4a2ff6da1d5a06c671dfa1382423f5515d1 /visualizer.c | |
parent | 61f7761c034d46eb0856fb115260de2679abc419 (diff) |
Add simple led support
Also the first version of a led testing animation
Diffstat (limited to 'visualizer.c')
-rw-r--r-- | visualizer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/visualizer.c b/visualizer.c index 867a1d3347..ed5c9fa2c9 100644 --- a/visualizer.c +++ b/visualizer.c @@ -77,6 +77,9 @@ static remote_object_t* remote_objects[] = { #endif +GDisplay* LCDDisplay; +GDisplay* LEDDisplay; + void start_keyframe_animation(keyframe_animation_t* animation) { animation->current_frame = -1; @@ -405,6 +408,11 @@ void visualizer_init(void) { #ifdef USE_SERIAL_LINK add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t*) ); #endif + // TODO: Make sure these works when either of these are disabled + LCDDisplay = gdispGetDisplay(0); + LEDDisplay = gdispGetDisplay(1); + + // We are using a low priority thread, the idea is to have it run only // when the main thread is sleeping during the matrix scanning chEvtObjectInit(&layer_changed_event); |