aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-02-25 23:43:33 -0700
committerSelene ToyKeeper2020-02-25 23:43:33 -0700
commit7d07887e11cf7804ce8eb15fac666551b9a2497e (patch)
treef0b1d770aa80cc37f9e47e5ee30219846b38f912 /spaghetti-monster
parentAdded template files for Noctigon K1 12V model. (diff)
downloadanduril-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 'spaghetti-monster')
-rw-r--r--spaghetti-monster/fsm-ramping.c6
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
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.