aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2019-03-18 02:53:27 -0600
committerSelene ToyKeeper2019-03-18 02:53:27 -0600
commitce07a791ecb5dd9c2bd6ac773c4b6b2e993ad681 (patch)
tree3c249c88349f6fbb6e268767525c859925ce9d8b
parentmerged trunk (diff)
downloadanduril-ce07a791ecb5dd9c2bd6ac773c4b6b2e993ad681.tar.gz
anduril-ce07a791ecb5dd9c2bd6ac773c4b6b2e993ad681.tar.bz2
anduril-ce07a791ecb5dd9c2bd6ac773c4b6b2e993ad681.zip
Made default level configurable per build target, made moon hint blip a bit more noticeable.
-rw-r--r--spaghetti-monster/anduril/anduril.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c
index 09c7927..7f19a5a 100644
--- a/spaghetti-monster/anduril/anduril.c
+++ b/spaghetti-monster/anduril/anduril.c
@@ -242,7 +242,10 @@ void save_config_wl();
#endif
// brightness control
-uint8_t memorized_level = MAX_1x7135;
+#ifndef DEFAULT_LEVEL
+#define DEFAULT_LEVEL MAX_1x7135
+#endif
+uint8_t memorized_level = DEFAULT_LEVEL;
// smooth vs discrete ramping
volatile uint8_t ramp_style = 0; // 0 = smooth, 1 = discrete
volatile uint8_t ramp_smooth_floor = RAMP_SMOOTH_FLOOR;
@@ -369,7 +372,7 @@ uint8_t off_state(Event event, uint16_t arg) {
// let the user know they can let go now to stay at moon
uint8_t temp = actual_level;
set_level(0);
- delay_4ms(2);
+ delay_4ms(3);
set_level(temp);
} else
#endif
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.