aboutsummaryrefslogtreecommitdiff
path: root/ui/baton/baton.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-11-02reorganized project files (part 1)Selene ToyKeeper1-0/+0
(just moved files, didn't change the contents yet, and nothing will work without updating #includes and build scripts and stuff)
2023-06-29Removed references to Harry Potter,Selene ToyKeeper1-2/+2
because J.K. Rowling is the figurehead of a hate group and I don't want to condone that in any way. I liked a 2-word phrase she wrote once, "mischief managed", but that was decades ago... and now she is the face of a transphobic movement known as TERFs. She turned out to be a pretty terrible person who uses her massive wealth and influence to spread hate and oppress people. To be clear: Trans rights are human rights. ... and anyone who has a problem with that has no place in this project. Patch suggested by SiteRelEnby, and TBH it's embarrassing that I didn't remove the phrase sooner. It seemed fun and innocent in 2017 when this project started, but ... things changed. https://github.com/SiteRelEnby/anduril2/commit/a1cee423b4e0e16909a90d5c3e6a7b70df30d755
2018-12-18Updated the rest of the FSM interfaces to use the new config file system.Selene ToyKeeper1-1/+1
2018-11-11Updated most of the UIs to use the new event API.Selene ToyKeeper1-6/+6
2018-10-15removed more-complex baton UI (which only different by having a party strobe ↵Selene ToyKeeper1-73/+13
mode), replaced it with the simpler version (since this UI exists mostly as an example)
2018-10-15cleaned up fsm baton UI a little, added a short manualSelene ToyKeeper1-47/+65
2017-09-03Got the 4th PWM channel to work, ish. (channel 4 is inverted though)Selene ToyKeeper1-2/+1
Moved go_to_suspend thing into main() instead of making each UI handle that during loop(). Made default_state() optional. Fixed bug where battcheck and other number readouts could interfere with the state which interrupted them. (they would sometimes turn the LED off after the new state had already started) Updated darkhorse's moon levels to match new ramp on D4 hardware.
2017-08-30Reorganized FSM files, one dir per UI.Selene ToyKeeper1-0/+1
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-24Added loop() to API, executes constantly.Selene ToyKeeper1-0/+2
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-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.