diff options
| author | Selene ToyKeeper | 2019-09-06 04:38:00 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2019-09-06 04:38:00 -0600 |
| commit | 7851656847738192e0e12cfe77861ba58d98cf6f (patch) | |
| tree | abe34d61f48402f93fd954fb4759a6d9cd231a01 /spaghetti-monster/fsm-ramping.c | |
| parent | fixed attiny13 builds (diff) | |
| download | anduril-7851656847738192e0e12cfe77861ba58d98cf6f.tar.gz anduril-7851656847738192e0e12cfe77861ba58d98cf6f.tar.bz2 anduril-7851656847738192e0e12cfe77861ba58d98cf6f.zip | |
added button LED support to D4v2
(in a way which doesn't break backward compatibility...
... but it really needs some refactoring to reduce code duplication)
Diffstat (limited to 'spaghetti-monster/fsm-ramping.c')
| -rw-r--r-- | spaghetti-monster/fsm-ramping.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-ramping.c b/spaghetti-monster/fsm-ramping.c index efa07e4..37c8073 100644 --- a/spaghetti-monster/fsm-ramping.c +++ b/spaghetti-monster/fsm-ramping.c @@ -46,6 +46,9 @@ void set_level(uint8_t level) { #endif #ifdef USE_AUX_RGB_LEDS rgb_led_set(0); + #ifdef USE_BUTTON_LED + button_led_set((level > 0) + (level > MAX_1x7135)); + #endif #endif } #endif |
