| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
readings to improve randomness.
Adjusted candle mode to use lower bits instead of upper bits, because the lower bits are more random.
(also, the lower-bit method is slightly smaller in ROM)
|
| | |
|
| |
|
|
| |
DarkHorse.
|
| |
|
|
|
|
| |
Added fsm-misc.*, which currently only has interruptible blink functions in it.
(for blinking out numbers and such)
|
| |
|
|
|
|
|
| |
Added #defines for State return values: EVENT_HANDLED, EVENT_NOT_HANDLED
Improved handling of delay includes.
Managed mischief.
|
| |
|
|
|
|
| |
Added nice_delay_ms() to process events while waiting, and abort on state change.
Converted ramping-ui strobe to smoothly variable with party and tactical modes.
|
| |
|
|
|
| |
Added ramping support in general.
|
| |
|
|
| |
fsm-*.c and fsm-*.h.
|
| |
|
|
|
|
| |
Fixed memory error in Baton -- long-press from off didn't restart at moon.
Made Momentary and Baton go to sleep while light is off.
|
| |
|
|
|
|
|
|
|
| |
(it was doing stuff like "press, release, release, timeout" so it didn't match "press, release, timeout")
(it may have also been missing the exact tick it needed, so I made it use >= instead of ==, but this is theoretical and harmless if I was wrong)
Made baton mode memory work a bit better for both regular and strobe modes.
Made baton fast strobe pulses shorter for better motion freezing.
Added USE_DELAY_ZERO option as an alternate for USE_FINE_DELAY.
|
| |
|
|
|
|
|
|
| |
Fixed 2nd PWM channel init. May have fixed 3rd and 4th too.
Added handling for complete normal clicks, but it's kind of flaky so far.
Added handling for sustained button holds.
Added missing 'arg' to state change functions.
|
| |
|