aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/darkhorse.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-08-30Reorganized FSM files, one dir per UI.Selene ToyKeeper1-378/+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-26Revert DarkHorse back to no wear-levelling.Selene ToyKeeper1-15/+15
It's smaller, and WL is probably not needed for this UI. I only converted it as a test, and it worked, so ... woot.
2017-08-26Made wear-levelling work. Takes a bunch of extra ROM though.Selene ToyKeeper1-15/+15
Also, I've only tested it a tiny amount.
2017-08-26Added eeprom load/save API (no wear levelling yet), verified it works in ↵Selene ToyKeeper1-1/+36
DarkHorse.
2017-08-26Avoid suspending at weird times by deferring the call to standby mode.Selene ToyKeeper1-24/+28
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.
2017-08-26Fixed bug: strobes could interfere with hold-from-off next time light was used.Selene ToyKeeper1-20/+24
(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.
2017-08-26Made DarkHorse always start at low when holding the button, like a real ↵Selene ToyKeeper1-24/+19
ZebraLight does. (previously ramped up one mode instead of resetting to low each time)
2017-08-26Forgot to handle beacon/strobe in LVP earlier.Selene ToyKeeper1-7/+4
2017-08-26Added beacons/strobes to DarkHorse.Selene ToyKeeper1-6/+57
Added a way to explicitly cancel the current "nice" delay without changing state.
2017-08-26Forgot to wrap one line for making thermal regulation optional.Selene ToyKeeper1-0/+2
2017-08-26Added DarkHorse, a clone of the ZebraLight UI.Selene ToyKeeper1-0/+290
Still needs strobe, beacon, and memory which lasts across battery changes.