diff options
| author | Selene ToyKeeper | 2023-05-02 08:47:42 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-05-02 08:47:42 -0600 |
| commit | fbed17d3260d1fca312d655818cc2394654615aa (patch) | |
| tree | 314a65aca488c6a235f2afeddd19a4b3d8eb22f2 /spaghetti-monster/chan-rgbaux.c | |
| parent | made "post-off voltage display" user-configurable in battcheck 7H menu item 2 (diff) | |
| download | anduril-fbed17d3260d1fca312d655818cc2394654615aa.tar.gz anduril-fbed17d3260d1fca312d655818cc2394654615aa.tar.bz2 anduril-fbed17d3260d1fca312d655818cc2394654615aa.zip | |
D4v2: added the rest of the aux RGB colors as channel modes,
and set aux "white" as the mode it uses to blink out numbers
Diffstat (limited to 'spaghetti-monster/chan-rgbaux.c')
| -rw-r--r-- | spaghetti-monster/chan-rgbaux.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/spaghetti-monster/chan-rgbaux.c b/spaghetti-monster/chan-rgbaux.c index 355f246..19d18a6 100644 --- a/spaghetti-monster/chan-rgbaux.c +++ b/spaghetti-monster/chan-rgbaux.c @@ -4,15 +4,31 @@ #pragma once void set_level_auxred(uint8_t level) { - rgb_led_set(!(!(level)) << 1); // red, high (or off) + rgb_led_set(!(!(level)) * 0b000010); // red, high (or off) +} + +void set_level_auxyel(uint8_t level) { + rgb_led_set(!(!(level)) * 0b001010); // red+green, high (or off) } void set_level_auxgrn(uint8_t level) { - rgb_led_set(!(!(level)) << 3); // green, high (or off) + rgb_led_set(!(!(level)) * 0b001000); // green, high (or off) +} + +void set_level_auxcyn(uint8_t level) { + rgb_led_set(!(!(level)) * 0b101000); // green+blue, high (or off) } void set_level_auxblu(uint8_t level) { - rgb_led_set(!(!(level)) << 5); // blue, high (or off) + rgb_led_set(!(!(level)) * 0b100000); // blue, high (or off) +} + +void set_level_auxprp(uint8_t level) { + rgb_led_set(!(!(level)) * 0b100010); // red+blue, high (or off) +} + +void set_level_auxwht(uint8_t level) { + rgb_led_set(!(!(level)) * 0b101010); // red+green+blue, high (or off) } bool gradual_tick_null(uint8_t gt) { return true; } // do nothing |
