aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-05-30 09:28:19 -0600
committerSelene ToyKeeper2023-05-30 09:28:19 -0600
commite3798bbd2d4e46cb73e266401d2817533683a7e9 (patch)
treeeba85ef408dfdf263da18d6c33eb8a9d97c8bec6
parentfixed aux pre-flash (thanks to wolfgirl42) (diff)
downloadanduril-e3798bbd2d4e46cb73e266401d2817533683a7e9.tar.gz
anduril-e3798bbd2d4e46cb73e266401d2817533683a7e9.tar.bz2
anduril-e3798bbd2d4e46cb73e266401d2817533683a7e9.zip
moved definition of BLINK_ONCE_TIME to the same file as BLINK_BRIGHTNESS
-rw-r--r--spaghetti-monster/anduril/misc.c6
-rw-r--r--spaghetti-monster/fsm-misc.h5
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)
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.