]> www.fi.muni.cz Git - bike-lights.git/commit
firmware: control logic moved to a separate module
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 30 Nov 2012 16:37:53 +0000 (17:37 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 30 Nov 2012 16:37:53 +0000 (17:37 +0100)
commit647f353f4d8c87c5cf18cae905e9d600cd0e6bcb
tree475293d181365c1f6bfd65b6557d029a520db399
parent210916486d18b3dc976c65c7b01b44bca446d856
firmware: control logic moved to a separate module

- buttons.c now controls status LEDs only when setting parameters
- pattern.c:
can use NULL instead of off_pattern
has number_pattern() than can also set up inverted patterns
contains only number and boot patterns as static variables
can reload all patterns if some state changes
- ambient.c resets all patterns when ambient zone changes
- control.c:
- now contains almost all pattern strings, only those needed by
other modules are exported
- status LED and illumination LED can be controlled by buttons.c
- separate _pattern_select() function for each LED
firmware/Makefile
firmware/ambient.c
firmware/buttons.c
firmware/control.c [new file with mode: 0644]
firmware/lights.h
firmware/main.c
firmware/pattern.c