aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/ramping-ui.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-08-30Reorganized FSM files, one dir per UI.Selene ToyKeeper1-361/+0
2017-08-30Replaced FSM_*_LAYOUT with FSM_*_DRIVER because I think it makes more sense.Selene ToyKeeper1-1/+1
Made momentary.c compile again. Updated fsm-main to use whichever delay function is available.
2017-08-26Added a temperature check mode to ramping-ui, mostly for testing purposes.Selene ToyKeeper1-0/+19
2017-08-25Made 4bar and 8bar battcheck styles work.Selene ToyKeeper1-0/+4
Added LVP handling for other modes, including battcheck.
2017-08-25Added battcheck mode to ramping-ui. It's bigger than I had hoped. :(Selene ToyKeeper1-3/+37
Added fsm-misc.*, which currently only has interruptible blink functions in it. (for blinking out numbers and such)
2017-08-24Started on some documentation, spaghetti-monster.txt.Selene ToyKeeper1-30/+30
Added #defines for State return values: EVENT_HANDLED, EVENT_NOT_HANDLED Improved handling of delay includes. Managed mischief.
2017-08-24Added loop() to API, executes constantly.Selene ToyKeeper1-30/+47
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.
2017-08-24Fixed repeating blinks at ends of ramp -- only blinks once now.Selene ToyKeeper1-4/+10
2017-08-24Set default brightness to max 7135 level.Selene ToyKeeper1-9/+16
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.
2017-08-24Made ramping UI able to toggle between smooth and discrete ramping with 4 ↵Selene ToyKeeper1-5/+27
clicks.
2017-08-24Added a ramping UI example.Selene ToyKeeper1-31/+55
Added ramping support in general.
2017-08-23Added thermal regulation to SpaghettiMonster / Baton.Selene ToyKeeper1-1/+35
Made some LVP values configurable. Removed high_temperature() / low_temperature() shortcuts for now.
2017-08-23Made Baton a little easier to read:Selene ToyKeeper1-12/+13
Renamed set_mode() to set_level(). Replaced sizeof() thingy with a MAX_LEVEL define.
2017-08-23Added LVP to Baton UI. Was super easy.Selene ToyKeeper1-1/+13
2017-08-19Added missing returns, made strobe-from-off use memorized strobe speed,Selene ToyKeeper1-2/+5
set initial brightness to ~10lm after battery change.
2017-08-19Baton: Strobe should be full-power.Selene ToyKeeper1-3/+3
2017-08-19Extra debouncing in PCINT (don't emit event if push was rejected).Selene ToyKeeper1-2/+4
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.
2017-08-19Improved memory handling in FSM Baton.Selene ToyKeeper1-22/+36
Improved brightness ramp. (lower low) Added double-click to/from turbo in steady modes. Moved strobes to triple-click.
2017-08-19Fixed unreliability of short-click detection.Selene ToyKeeper1-6/+11
(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.
2017-08-19Added unfinished UI similar to Olight Baton series.Selene ToyKeeper1-0/+157
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.