From: Jan "Yenya" Kasprzak Date: Fri, 30 Nov 2012 16:37:53 +0000 (+0100) Subject: firmware: control logic moved to a separate module X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=647f353f4d8c87c5cf18cae905e9d600cd0e6bcb;hp=647f353f4d8c87c5cf18cae905e9d600cd0e6bcb;p=bike-lights.git 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 ---