aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-main.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-08-22Reduced ROM size by making successive nice_delay_ms calls collapse any time ↵Selene ToyKeeper1-0/+2
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.
2018-06-17Changed halfsleep mode to TICK_DURING_STANDBY. Added blinking indicator LED ↵Selene ToyKeeper1-1/+0
support to Anduril.
2017-10-21Delay un-setting go_to_standby until the last moment, in case set_level() ↵Selene ToyKeeper1-1/+1
wants to use it.
2017-09-24Cut moon power from ~4mA to ~2.5mA by running clock at half speed on very ↵Selene ToyKeeper1-0/+6
low modes. Adjusted default FET+1 ramp to compensate for speed bump. Added define(s) for whether to blink at ramp floor/ceiling/channel edges. Lowered default moon level to 1, since slower speed makes it brighter and more stable.
2017-09-24Removed unused code from first idle_mode(); experiment.Selene ToyKeeper1-20/+0
2017-09-24Added idle_mode() for slightly lower power use without turning off any ↵Selene ToyKeeper1-2/+14
regular functions. (PWM, ADC, WDT all still enabled; only useful in moon mode) Changed default ceilings in Anduril FW3A config.
2017-09-03Got the 4th PWM channel to work, ish. (channel 4 is inverted though)Selene ToyKeeper1-31/+58
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-30Replaced FSM_*_LAYOUT with FSM_*_DRIVER because I think it makes more sense.Selene ToyKeeper1-0/+4
Made momentary.c compile again. Updated fsm-main to use whichever delay function is available.
2017-08-27Fixed a bug where sometimes the light wouldn't respond for a second or so ↵Selene ToyKeeper1-0/+4
after connecting power. (spurious events were detected at boot, and previously had to time out before it would respond)
2017-08-24Added loop() to API, executes constantly.Selene ToyKeeper1-4/+3
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-19Completely reorganized SpaghettiMonster code into smaller logical pieces: ↵Selene ToyKeeper1-0/+107
fsm-*.c and fsm-*.h.