| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
| |
| |
| |
| |
| |
| |
| | |
in one sequence.
(use #define MAX_CLICKS 5, for example)
Keeps data sizes from being excessively large without having to edit FSM sources per UI.
|
| | |
| |
| |
| |
| |
| | |
It's smaller, and WL is probably not needed for this UI.
I only converted it as a test, and it worked, so ... woot.
|
| | |
| |
| |
| |
| | |
Also, I've only tested it a tiny amount.
|
| | |
| |
| |
| | |
DarkHorse.
|
| | |
| |
| |
| | |
throwing config errors.
|
| | |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| | |
I basically didn't even start on it; just had an idea and then didn't touch it again.
|
| | | |
|
| | |
| |
| |
| |
| | |
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.
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Converted emit handling to an async queue, to avoid long-running interrupts.
(moved potentially long parts to main())
Improved button press debouncing (was getting stuck sometimes).
Added an EV_debug event for testing.
Added and turned off some voltage averaging/lowpass logic.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Changed how tk-attiny.h detects whether a layout was defined.
Changed how tk-attiny.h detects number of PWM channels for new-style layouts.
Added no-underscore versions of delay functions.
Lots of RoundTable refactoring and blank-filling.
|
| |/ |
|
| |\ |
|
| | | |
|
| |\ \
| | |
| | |
| | |
| | | |
Calibration in .hex file is slightly different than Convoy build though.
Use the Convoy branch for Convoy lights.
|
| | | |
| | |
| | |
| | | |
strobe.
|
| | | |
| | |
| | |
| | |
| | |
| | | |
more than they need millisecond delay precision.
(may break other projects unless I add a different way to enable the code, beware)
|
| |\ \ \
| | |/
| |/|
| | | |
Applied tk-delay.h changes everywhere I could find a need for it.
|
| | |\ \
| |/ /
|/| | |
|
| | | |
| | |
| | |
| | |
| | | |
(not sure why it was changed, but it was wrong)
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
MTN17DDm FET+1.
Moved FAST/PHASE definitions to tk-attiny.h. These are really a per-layout option so it's better there.
|