diff options
| author | Selene ToyKeeper | 2020-04-19 03:10:56 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2020-04-19 03:10:56 -0600 |
| commit | 83f1f66ca9760bcb968b2104d5f270804663961c (patch) | |
| tree | c84a7e07a76faf7de596623ecb3f86bd195477bd /spaghetti-monster | |
| parent | added a Noctigon KR4 219 (75% FET) build target (diff) | |
| download | anduril-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.c | 5 |
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; } |
