| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Turned strobe into a function to avoid repeating code, and made it tolerate interruption better.
Got rid of delay after battcheck, since it caused problems if the user didn't wait long enough before trying to turn the light back on.
|
| |
|
|
|
|
|
| |
(because it'd enter standby mode during the strobe pulse,
then continue the flow at next activation by turning the light off)
Replaced bare return values with ones defined in the FSM library.
|
| |
|
|
|
|
|
| |
ZebraLight does.
(previously ramped up one mode instead of resetting to low each time)
|
| | |
|
| |
|
|
|
| |
Added a way to explicitly cancel the current "nice" delay without changing state.
|
| | |
|
| |
|
|
|
| |
Still needs strobe, beacon, and memory which lasts across battery changes.
|
| | |
|
| |
|
|
|
| |
Added LVP handling for other modes, including battcheck.
|
| |
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
| |
Also, avoid immediate thermal step-down after battery change. (init array with correctly-scaled values)
|
| |
|
|
|
|
| |
Made thermal regulation adjust proportional to how far above/below the target range the light is.
Replaced turn-on blinks with single shorter/dimmer blip.
|
| |
|
|
| |
clicks.
|
| |
|
|
|
| |
Added ramping support in general.
|
| |
|
|
|
|
| |
Made some LVP values configurable.
Removed high_temperature() / low_temperature() shortcuts for now.
|
| |
|
|
|
|
| |
Renamed set_mode() to set_level().
Replaced sizeof() thingy with a MAX_LEVEL define.
|
| | |
|
| |
|
|
|
| |
set initial brightness to ~10lm after battery change.
|
| | |
|
| |
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
| |
Improved brightness ramp. (lower low)
Added double-click to/from turbo in steady modes.
Moved strobes to triple-click.
|
| |
|
|
|
|
|
|
|
| |
(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.
|
| |
|