aboutsummaryrefslogtreecommitdiff
path: root/ui/darkhorse/darkhorse.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-8/+8
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
2019-11-13fixed some compile issues related to delay_4ms()Selene ToyKeeper1-1/+0
2019-01-03removed redundant clock speed lines, updated some commentsSelene ToyKeeper1-0/+1
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-14/+14
2017-09-03Got the 4th PWM channel to work, ish. (channel 4 is inverted though)Selene ToyKeeper1-12/+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/+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.