aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-08-12 03:01:10 -0600
committerSelene ToyKeeper2021-08-12 03:01:10 -0600
commiteffdfa49064136a59cbd9d4f59a461e96688ce1e (patch)
tree18eeecaca62124c15eddc5156d901245c9602b42 /spaghetti-monster
parentdocument the actual maximum for manual memory timer (~140 minutes, not 255) (diff)
downloadanduril-effdfa49064136a59cbd9d4f59a461e96688ce1e.tar.gz
anduril-effdfa49064136a59cbd9d4f59a461e96688ce1e.tar.bz2
anduril-effdfa49064136a59cbd9d4f59a461e96688ce1e.zip
made blink_once() brightness configurable per build
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/anduril/misc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/spaghetti-monster/anduril/misc.c b/spaghetti-monster/anduril/misc.c
index 523bbf0..9c7f0dd 100644
--- a/spaghetti-monster/anduril/misc.c
+++ b/spaghetti-monster/anduril/misc.c
@@ -25,7 +25,7 @@
/* no longer used
void blink_confirm(uint8_t num) {
uint8_t brightness = actual_level;
- uint8_t bump = actual_level + (MAX_LEVEL/6);
+ uint8_t bump = actual_level + BLINK_BRIGHTNESS;
if (bump > MAX_LEVEL) bump = 0;
for (; num>0; num--) {
set_level(bump);
@@ -41,9 +41,12 @@ void blink_confirm(uint8_t num) {
#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 + (MAX_LEVEL/6);
+ uint8_t bump = brightness + BLINK_BRIGHTNESS;
if (bump > MAX_LEVEL) bump = 0;
set_level(bump);
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.