aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-misc.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-14moved triangle_wave into fsm-misc, because I need it for power correction in ↵Selene ToyKeeper1-0/+7
tint ramping
2018-10-07Made second aux LED copy the behavior of the first.Selene ToyKeeper1-0/+12
(to make the PL47 switch LEDs mirror the front-facing aux LEDs)
2018-08-22Reduced ROM size by making successive nice_delay_ms calls collapse any time ↵Selene ToyKeeper1-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.
2017-10-21Moved indicator_led() from Anduril into FSM. Made it auto-set indicator ↵Selene ToyKeeper1-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.
2017-09-26Added dynamic underclocking to FSM, instead of doing it manually in Anduril.Selene ToyKeeper1-0/+19
2017-09-03Got the 4th PWM channel to work, ish. (channel 4 is inverted though)Selene ToyKeeper1-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.
2017-08-25Made 4bar and 8bar battcheck styles work.Selene ToyKeeper1-1/+3
Added LVP handling for other modes, including battcheck.
2017-08-25Added battcheck mode to ramping-ui. It's bigger than I had hoped. :(Selene ToyKeeper1-0/+91
Added fsm-misc.*, which currently only has interruptible blink functions in it. (for blinking out numbers and such)