aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-main.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Got the 4th PWM channel to work, ish. (channel 4 is inverted though)Selene ToyKeeper2017-09-031-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.
* Replaced FSM_*_LAYOUT with FSM_*_DRIVER because I think it makes more sense.Selene ToyKeeper2017-08-301-0/+4
| | | | | | Made momentary.c compile again. Updated fsm-main to use whichever delay function is available.
* Fixed a bug where sometimes the light wouldn't respond for a second or so ↵Selene ToyKeeper2017-08-271-0/+4
| | | | | | | after connecting power. (spurious events were detected at boot, and previously had to time out before it would respond)
* Added loop() to API, executes constantly.Selene ToyKeeper2017-08-241-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.
* Completely reorganized SpaghettiMonster code into smaller logical pieces: ↵Selene ToyKeeper2017-08-191-0/+107
fsm-*.c and fsm-*.h.