From a66c9fbbdd898138beec63fc70c9133675b15dfe Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sun, 17 Jun 2018 19:43:35 -0600 Subject: Started adding support for aux LEDs which go out the front instead of lighting up the button. (so they should only be on when the main LEDs are off) --- spaghetti-monster/fsm-ramping.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spaghetti-monster/fsm-ramping.c') diff --git a/spaghetti-monster/fsm-ramping.c b/spaghetti-monster/fsm-ramping.c index ec132ae..01df46a 100644 --- a/spaghetti-monster/fsm-ramping.c +++ b/spaghetti-monster/fsm-ramping.c @@ -29,11 +29,15 @@ void set_level(uint8_t level) { gradual_target = level; #endif #ifdef USE_INDICATOR_LED + #ifdef USE_INDICATOR_LED_WHILE_RAMPING if (! go_to_standby) indicator_led((level > 0) + (level > MAX_1x7135)); //if (level > MAX_1x7135) indicator_led(2); //else if (level > 0) indicator_led(1); //else if (! go_to_standby) indicator_led(0); + #else + indicator_led(0); + #endif #endif //TCCR0A = PHASE; if (level == 0) { -- cgit v1.2.3 From f1871e8e1ee4461a51ed331ce0ba3b51b42b32e5 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sat, 23 Jun 2018 02:08:08 -0600 Subject: Don't auto-shutoff indicator LED when entering standby mode. --- spaghetti-monster/fsm-ramping.c | 1 + 1 file changed, 1 insertion(+) (limited to 'spaghetti-monster/fsm-ramping.c') diff --git a/spaghetti-monster/fsm-ramping.c b/spaghetti-monster/fsm-ramping.c index 01df46a..6cdf5e6 100644 --- a/spaghetti-monster/fsm-ramping.c +++ b/spaghetti-monster/fsm-ramping.c @@ -36,6 +36,7 @@ void set_level(uint8_t level) { //else if (level > 0) indicator_led(1); //else if (! go_to_standby) indicator_led(0); #else + if (! go_to_standby) indicator_led(0); #endif #endif -- cgit v1.2.3