From 32eaeddee34c76dda5456ed960be6278ed68e48d Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Thu, 24 Aug 2017 16:21:45 -0600 Subject: Added loop() to API, executes constantly. 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. --- spaghetti-monster/spaghetti-monster.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'spaghetti-monster/spaghetti-monster.h') diff --git a/spaghetti-monster/spaghetti-monster.h b/spaghetti-monster/spaghetti-monster.h index 2ba3208..7d26390 100644 --- a/spaghetti-monster/spaghetti-monster.h +++ b/spaghetti-monster/spaghetti-monster.h @@ -54,9 +54,11 @@ void debug_blink(uint8_t num) { // TODO? new delay() functions which handle queue consumption? // TODO? new interruptible delay() functions? +// Define these in your SpaghettiMonster recipe // boot-time tasks -// Define this in your SpaghettiMonster recipe void setup(); +// single loop iteration, runs continuously +void loop(); // include executable functions too, for easier compiling #include "fsm-states.c" -- cgit v1.2.3