diff options
| author | Selene ToyKeeper | 2020-02-25 23:43:33 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2020-02-25 23:43:33 -0700 |
| commit | 7d07887e11cf7804ce8eb15fac666551b9a2497e (patch) | |
| tree | f0b1d770aa80cc37f9e47e5ee30219846b38f912 /spaghetti-monster | |
| parent | Added template files for Noctigon K1 12V model. (diff) | |
| download | anduril-7d07887e11cf7804ce8eb15fac666551b9a2497e.tar.gz anduril-7d07887e11cf7804ce8eb15fac666551b9a2497e.tar.bz2 anduril-7d07887e11cf7804ce8eb15fac666551b9a2497e.zip | |
added support for boost PMIC enable pin (K1 12V has 2 pins which need to turn on/off for main LED output)
Diffstat (limited to '')
| -rw-r--r-- | spaghetti-monster/fsm-ramping.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-ramping.c b/spaghetti-monster/fsm-ramping.c index 20500cc..bae601e 100644 --- a/spaghetti-monster/fsm-ramping.c +++ b/spaghetti-monster/fsm-ramping.c @@ -72,6 +72,9 @@ void set_level(uint8_t level) { #ifdef LED_ENABLE_PIN LED_ENABLE_PORT &= ~(1 << LED_ENABLE_PIN); #endif + #ifdef LED_ENABLE2_PIN + LED_ENABLE2_PORT &= ~(1 << LED_ENABLE2_PIN); + #endif } else { level --; @@ -79,6 +82,9 @@ void set_level(uint8_t level) { #ifdef LED_ENABLE_PIN LED_ENABLE_PORT |= (1 << LED_ENABLE_PIN); #endif + #ifdef LED_ENABLE2_PIN + LED_ENABLE2_PORT |= (1 << LED_ENABLE2_PIN); + #endif #ifdef USE_TINT_RAMPING #ifndef TINT_RAMPING_CORRECTION |
