aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-04-19 03:10:56 -0600
committerSelene ToyKeeper2020-04-19 03:10:56 -0600
commit83f1f66ca9760bcb968b2104d5f270804663961c (patch)
treec84a7e07a76faf7de596623ecb3f86bd195477bd /spaghetti-monster
parentadded a Noctigon KR4 219 (75% FET) build target (diff)
downloadanduril-83f1f66ca9760bcb968b2104d5f270804663961c.tar.gz
anduril-83f1f66ca9760bcb968b2104d5f270804663961c.tar.bz2
anduril-83f1f66ca9760bcb968b2104d5f270804663961c.zip
anduril: made aux RGB rainbow mode speed configurable per build target
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/anduril/anduril.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c
index cb48b45..e87a30c 100644
--- a/spaghetti-monster/anduril/anduril.c
+++ b/spaghetti-monster/anduril/anduril.c
@@ -355,6 +355,9 @@ const PROGMEM uint8_t rgb_led_colors[] = {
#ifndef RGB_LED_LOCKOUT_DEFAULT
#define RGB_LED_LOCKOUT_DEFAULT 0x37 // blinking, rainbow
#endif
+#ifndef RGB_RAINBOW_SPEED
+#define RGB_RAINBOW_SPEED 0x0f // change color every 16 frames
+#endif
uint8_t rgb_led_off_mode = RGB_LED_OFF_DEFAULT;
uint8_t rgb_led_lockout_mode = RGB_LED_LOCKOUT_DEFAULT;
#endif
@@ -2400,7 +2403,7 @@ void rgb_led_update(uint8_t mode, uint8_t arg) {
}
else if (color == 7) { // rainbow
uint8_t speed = 0x03; // awake speed
- if (go_to_standby) speed = 0x0f; // asleep speed
+ if (go_to_standby) speed = RGB_RAINBOW_SPEED; // asleep speed
if (0 == (arg & speed)) {
rainbow = (rainbow + 1) % 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.