diff options
| author | Selene ToyKeeper | 2023-08-25 17:27:43 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-08-25 17:27:43 -0600 |
| commit | 9e5f2dacebf880f61671974ddd8f604cf1782f37 (patch) | |
| tree | 49e3624babda4a9d646e1dd2026efedab658bab0 /spaghetti-monster/fsm-ramping.h | |
| parent | made custom 3H handler system work, added circular HSV ramping, (diff) | |
| download | anduril-9e5f2dacebf880f61671974ddd8f604cf1782f37.tar.gz anduril-9e5f2dacebf880f61671974ddd8f604cf1782f37.tar.bz2 anduril-9e5f2dacebf880f61671974ddd8f604cf1782f37.zip | |
started splitting set_level(0) into its own set_level_zero(), and
made USE_AUX_RGB_LEDS_WHILE_ON work more like the old indicator LEDs,
where it gets set automatically with set_level()
Using set_level_zero() reduces space used by channel modes, and simplifies
code for each mode's set_level_*() functions. I measured about 220 bytes
less in the emisar-d4k-3ch build this way, while also reducing the chance
of bugs.
Diffstat (limited to 'spaghetti-monster/fsm-ramping.h')
| -rw-r--r-- | spaghetti-monster/fsm-ramping.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-ramping.h b/spaghetti-monster/fsm-ramping.h index cae9a4d..bfcc5fb 100644 --- a/spaghetti-monster/fsm-ramping.h +++ b/spaghetti-monster/fsm-ramping.h @@ -13,6 +13,7 @@ uint8_t prev_level = 0; void set_level(uint8_t level); //void set_level_smooth(uint8_t level); +void set_level_zero(); // implement this in a hwdef #ifdef USE_SET_LEVEL_GRADUALLY // adjust brightness very smoothly |
