aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-misc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Reduced ROM size by making successive nice_delay_ms calls collapse any time ↵Selene ToyKeeper2018-08-221-6/+4
| | | | | | | | | the user completes an input sequence. All nice delays then get aborted until the next trip through the main() loop. Eliminates the need to wrap nice_delay_ms() calls and handle the exit condition. Also eliminates the risk of getting the UI out of sync with button events.
* Moved indicator_led() from Anduril into FSM. Made it auto-set indicator ↵Selene ToyKeeper2017-10-211-0/+28
| | | | | | | | | level based on ramp level. Made Anduril configure voltage fudge and indicator LED functions based on driver type. Removed "ticks_spent_awake" thing since it's redundant. EV_tick arg does the same thing in fewer bytes. Rearranged some clauses in off_state to put events in a more coherent order.
* Added dynamic underclocking to FSM, instead of doing it manually in Anduril.Selene ToyKeeper2017-09-261-0/+19
|
* Got the 4th PWM channel to work, ish. (channel 4 is inverted though)Selene ToyKeeper2017-09-031-1/+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.
* Made 4bar and 8bar battcheck styles work.Selene ToyKeeper2017-08-251-1/+3
| | | | | Added LVP handling for other modes, including battcheck.
* Added battcheck mode to ramping-ui. It's bigger than I had hoped. :(Selene ToyKeeper2017-08-251-0/+91
Added fsm-misc.*, which currently only has interruptible blink functions in it. (for blinking out numbers and such)