aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Added loop() to API, executes constantly.Selene ToyKeeper2017-08-247-35/+84
| | | | | | 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.
* Fixed repeating blinks at ends of ramp -- only blinks once now.Selene ToyKeeper2017-08-241-4/+10
|
* Don't send underheat warnings when LVP is active. The signals conflict.Selene ToyKeeper2017-08-241-5/+5
| | | | Also, avoid immediate thermal step-down after battery change. (init array with correctly-scaled values)
* Set default brightness to max 7135 level.Selene ToyKeeper2017-08-241-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.
* Made ramping UI able to toggle between smooth and discrete ramping with 4 ↵Selene ToyKeeper2017-08-242-5/+40
| | | | clicks.
* Added a ramping UI example.Selene ToyKeeper2017-08-246-6/+404
| | | | | Added ramping support in general.
* Added thermal regulation to SpaghettiMonster / Baton.Selene ToyKeeper2017-08-234-9/+206
| | | | | | Made some LVP values configurable. Removed high_temperature() / low_temperature() shortcuts for now.
* Made Baton a little easier to read:Selene ToyKeeper2017-08-231-12/+13
| | | | | | Renamed set_mode() to set_level(). Replaced sizeof() thingy with a MAX_LEVEL define.
* Added LVP to Baton UI. Was super easy.Selene ToyKeeper2017-08-231-1/+13
|
* Added missing returns, made strobe-from-off use memorized strobe speed,Selene ToyKeeper2017-08-191-2/+5
| | | | | set initial brightness to ~10lm after battery change.
* Baton: Strobe should be full-power.Selene ToyKeeper2017-08-191-3/+3
|
* Completely reorganized SpaghettiMonster code into smaller logical pieces: ↵Selene ToyKeeper2017-08-1915-734/+1128
| | | | fsm-*.c and fsm-*.h.
* Extra debouncing in PCINT (don't emit event if push was rejected).Selene ToyKeeper2017-08-193-29/+17
| | | | | | 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.
* Fixed momentary UI (API changed a little).Selene ToyKeeper2017-08-191-1/+1
|
* Improved memory handling in FSM Baton.Selene ToyKeeper2017-08-191-22/+36
| | | | | | | Improved brightness ramp. (lower low) Added double-click to/from turbo in steady modes. Moved strobes to triple-click.
* Fixed unreliability of short-click detection.Selene ToyKeeper2017-08-192-10/+24
| | | | | | | | | (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.
* Added unfinished UI similar to Olight Baton series.Selene ToyKeeper2017-08-192-59/+260
| | | | | | | | 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.
* Renamed from RoundTable to SpaghettiMonster (FSM).Selene ToyKeeper2017-08-193-0/+848