diff options
Diffstat (limited to '')
| -rw-r--r-- | spaghetti-monster/anduril/misc.c | 6 | ||||
| -rw-r--r-- | spaghetti-monster/fsm-misc.h | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/spaghetti-monster/anduril/misc.c b/spaghetti-monster/anduril/misc.c index d78c542..1b92d6f 100644 --- a/spaghetti-monster/anduril/misc.c +++ b/spaghetti-monster/anduril/misc.c @@ -22,12 +22,6 @@ void blink_confirm(uint8_t num) { // make a short, visible pulse // (either brighter or darker, depending on current brightness) -#ifndef BLINK_ONCE_TIME -#define BLINK_ONCE_TIME 10 -#endif -#ifndef BLINK_BRIGHTNESS -#define BLINK_BRIGHTNESS (MAX_LEVEL/6) -#endif void blink_once() { uint8_t brightness = actual_level; uint8_t bump = brightness + BLINK_BRIGHTNESS; diff --git a/spaghetti-monster/fsm-misc.h b/spaghetti-monster/fsm-misc.h index 8988337..8de6b29 100644 --- a/spaghetti-monster/fsm-misc.h +++ b/spaghetti-monster/fsm-misc.h @@ -8,6 +8,11 @@ void auto_clock_speed(); #endif +// shortest time (in ms) the light should blink for to indicate a zero +#ifndef BLINK_ONCE_TIME + #define BLINK_ONCE_TIME 10 +#endif + #if defined(USE_BLINK_NUM) || defined(USE_BLINK_DIGIT) #ifndef BLINK_BRIGHTNESS #define BLINK_BRIGHTNESS (MAX_LEVEL/6) |
