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) | |
| download | qmk_firmware-c95b17b536b4437f001d5f5e8a54753969e36bb2.tar.gz qmk_firmware-c95b17b536b4437f001d5f5e8a54753969e36bb2.zip | |
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 867a1d334..ed5c9fa2c 100644 --- a/visualizer.c +++ b/visualizer.c | |||
| @@ -77,6 +77,9 @@ static remote_object_t* remote_objects[] = { | |||
| 77 | 77 | ||
| 78 | #endif | 78 | #endif |
| 79 | 79 | ||
| 80 | GDisplay* LCDDisplay; | ||
| 81 | GDisplay* LEDDisplay; | ||
| 82 | |||
| 80 | 83 | ||
| 81 | void start_keyframe_animation(keyframe_animation_t* animation) { | 84 | void start_keyframe_animation(keyframe_animation_t* animation) { |
| 82 | animation->current_frame = -1; | 85 | animation->current_frame = -1; |
| @@ -405,6 +408,11 @@ void visualizer_init(void) { | |||
| 405 | #ifdef USE_SERIAL_LINK | 408 | #ifdef USE_SERIAL_LINK |
| 406 | add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t*) ); | 409 | add_remote_objects(remote_objects, sizeof(remote_objects) / sizeof(remote_object_t*) ); |
| 407 | #endif | 410 | #endif |
| 411 | // TODO: Make sure these works when either of these are disabled | ||
| 412 | LCDDisplay = gdispGetDisplay(0); | ||
| 413 | LEDDisplay = gdispGetDisplay(1); | ||
| 414 | |||
| 415 | |||
| 408 | // We are using a low priority thread, the idea is to have it run only | 416 | // We are using a low priority thread, the idea is to have it run only |
| 409 | // when the main thread is sleeping during the matrix scanning | 417 | // when the main thread is sleeping during the matrix scanning |
| 410 | chEvtObjectInit(&layer_changed_event); | 418 | chEvtObjectInit(&layer_changed_event); |
