Commit Graph

42 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
489288f674 Add a nicer sine based gradient for the LEDs 2016-05-29 21:59:27 +03:00
Fred Sundvik
0c3189055f Make LED visualization times configurable 2016-05-29 17:42:32 +03:00
Fred Sundvik
9c955145f5 Fix emulator #ifdef check 2016-05-29 02:08:46 +03:00
Fred Sundvik
4d7e4a4780 Don't include lcd_backlight_hal for emulator 2016-05-28 11:13:08 +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
15300cb681 Build lcd_backlight_hal_emulator.c
When the emulator is set, instead of the lcd_backlight_hal.c file.
2016-05-17 09:51:27 +03:00
Fred Sundvik
4e89732617 Enable and fix compilation of more files 2016-05-17 09:45:05 +03:00
Fred Sundvik
d79e94adb1 Use ugfx API instead of chibios 2016-05-17 09:35:02 +03:00
Fred Sundvik
15bdef3ee9 Makefile changes to support emulator build 2016-05-16 09:45:39 +03:00
Fred Sundvik
350bc0d22f Merge branch 'master' into led 2016-05-15 14:50:34 +03:00
Fred Sundvik
bde869aa7e Merge branch 'chibios-contrib' 2016-05-15 14:08:01 +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
25382cb6f2 Fix compute_gradient_color 2016-05-11 22:06:26 +03:00
Fred Sundvik
f0c8e7c495 Fix a few led test animation issues 2016-04-30 22:45:41 +03:00
Fred Sundvik
6313cfd559 Fix some makefile issues, and symbol issues 2016-04-24 17:44:11 +03:00
Fred Sundvik
74baa4895c Run mirrored keyframes for led tests as well 2016-04-24 16:40:41 +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
0530ebb77d Add led crossfading 2016-04-24 16:20:00 +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
0e0488623e Add left to right gradient keyframe for leds 2016-04-24 14:54:40 +03:00
Fred Sundvik
a960a1b006 Add fade out for the led test 2016-04-24 14:10:01 +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
61f7761c03 Update ugfx with ChibiOS 4 support.
Also change the URL to fredizzimo bitbucket
2016-04-09 19:49:52 +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
725929ec8b Fix include paths for new tmk_core update 2016-02-23 09:37:24 +02:00
Fred Sundvik
c5db02925c Clean up wrong license information 2016-02-13 22:20:47 +02:00
Fred Sundvik
8479e6aa39 Update readme and license
Also add integration examples
2016-02-13 22:08:49 +02:00
Fred Sundvik
8ce60649c8 Initialize backlight and LCD during visualizer_init 2016-02-13 20:29:49 +02:00
Fred Sundvik
209167d4d6 Compile the user visualizer 2016-02-13 19:53:22 +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
Fred Sundvik
01b955aa64 Add LCD backlight support
Also possibility to disable the LCD support
2016-02-13 19:21:16 +02:00
Fred Sundvik
fb681b5a60 Add makefile that includes ugfx 2016-02-13 17:47:39 +02:00
Fred Sundvik
bb75446b0b Add uGFX submodule v 2.4 2016-02-13 16:44:14 +02:00
fredizzimo
4452f4965d Add MIT license 2016-02-13 14:18:48 +02:00
Fred Sundvik
3568065141 Add readme 2016-02-12 09:33:38 +02:00