Commit Graph

19 Commits

Author SHA1 Message Date
Fred Sundvik
73d890a2c9 Fix visualizer sleeping too long
The documentation for ugfx gEventWait wait is wrong and the
function takes the time in milliseconds, instead of system ticks.
This caused the the thread to sleep way too long. It also caused
somewhat random sleeping behaviour as the MS2ST function overflows
at around 43 seconds sleep.

The event source is also now initialized correctly, so that the
thread actually can be woken up by events.
2016-06-01 09:22:47 +03:00
Fred Sundvik
9c955145f5 Fix emulator #ifdef check 2016-05-29 02:08:46 +03:00
Fred Sundvik
94519e387a Add callback function for emulator drawing 2016-05-18 09:03:42 +03:00
Fred Sundvik
fa8feb21a4 Add custom led and lcd display support 2016-05-18 08:40:36 +03:00
Fred Sundvik
07e412c538 Fix crash when event listener not created 2016-05-17 11:21:38 +03:00
Fred Sundvik
d79e94adb1 Use ugfx API instead of chibios 2016-05-17 09:35:02 +03:00
Fred Sundvik
350bc0d22f Merge branch 'master' into led 2016-05-15 14:50:34 +03:00
Fred Sundvik
81f89cc672 Update include dir for new serial_link include 2016-05-15 13:43:45 +03:00
Fred Sundvik
5651be7a2f Configurable visualizer thread priority 2016-05-15 13:43:45 +03:00
Fred Sundvik
6313cfd559 Fix some makefile issues, and symbol issues 2016-04-24 17:44:11 +03:00
Fred Sundvik
15906b86ae LEDS are flushed automatically
After running the animation, instead of having to do it manually.
This avoids duplicate flushing, and better support for cross-fades.
2016-04-24 16:26:53 +03:00
Fred Sundvik
891edbd533 Add function for running the next keyframe 2016-04-24 16:19:31 +03:00
Fred Sundvik
444132edd0 Add last and first update of frame for anims 2016-04-24 15:45:52 +03:00
Fred Sundvik
c95b17b536 Add simple led support
Also the first version of a led testing animation
2016-04-24 13:46:19 +03:00
Fred Sundvik
f4c11740f7 Suspend power off, fix backlight animation
The backlight color animation was using the wrong frame number, so
it didn't work properly.
2016-03-13 21:35:42 +02:00
Fred Sundvik
b93d07198a Suspend support for the visualizer 2016-03-13 20:13:02 +02:00
Fred Sundvik
315edb4826 Add serial link support for visualizer 2016-03-12 19:42:57 +02:00
Fred Sundvik
8ce60649c8 Initialize backlight and LCD during visualizer_init 2016-02-13 20:29:49 +02:00
Fred Sundvik
9e58d022ba Add visualizer
A generic visualizer that supports animations. There's a few
predefined keyframe types included, and more can be added by the
user.
2016-02-13 19:38:23 +02:00