aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/anduril/misc.c12
-rw-r--r--spaghetti-monster/anduril/misc.h2
2 files changed, 12 insertions, 2 deletions
diff --git a/spaghetti-monster/anduril/misc.c b/spaghetti-monster/anduril/misc.c
index f6a0439..63b8f48 100644
--- a/spaghetti-monster/anduril/misc.c
+++ b/spaghetti-monster/anduril/misc.c
@@ -22,6 +22,7 @@
#include "misc.h"
+/* no longer used
void blink_confirm(uint8_t num) {
uint8_t brightness = actual_level;
uint8_t bump = actual_level + (MAX_LEVEL/6);
@@ -33,9 +34,18 @@ void blink_confirm(uint8_t num) {
if (num > 1) { delay_4ms(100/4); }
}
}
+*/
+// make a short, visible pulse
+// (either brighter or darker, depending on current brightness)
void blink_once() {
- blink_confirm(1);
+ uint8_t brightness = actual_level;
+ uint8_t bump = brightness + (MAX_LEVEL/6);
+ if (bump > MAX_LEVEL) bump = 0;
+
+ set_level(bump);
+ delay_4ms(10/4);
+ set_level(brightness);
}
// Just go dark for a moment to indicate to user that something happened
diff --git a/spaghetti-monster/anduril/misc.h b/spaghetti-monster/anduril/misc.h
index 548cc23..5febbc7 100644
--- a/spaghetti-monster/anduril/misc.h
+++ b/spaghetti-monster/anduril/misc.h
@@ -20,7 +20,7 @@
#ifndef MISC_H
#define MISC_H
-void blink_confirm(uint8_t num);
+//void blink_confirm(uint8_t num); // no longer used
void blink_once();
void blip();
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.