aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-05-02 10:25:05 -0600
committerSelene ToyKeeper2023-05-02 10:25:05 -0600
commitb47dff4574740ad3fac4eb9b26ebb9d0ead6d644 (patch)
treeefeb848cbf8bed7278bcba1d4236585868622efa /spaghetti-monster
parentdocumented post-off voltage display config (diff)
downloadanduril-b47dff4574740ad3fac4eb9b26ebb9d0ead6d644.tar.gz
anduril-b47dff4574740ad3fac4eb9b26ebb9d0ead6d644.tar.bz2
anduril-b47dff4574740ad3fac4eb9b26ebb9d0ead6d644.zip
RGB buttons: while torch is on, use low mode below a configured level
for real-time voltage color display, instead of always using high mode
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/anduril/anduril.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c
index bd05ede..ab43df6 100644
--- a/spaghetti-monster/anduril/anduril.c
+++ b/spaghetti-monster/anduril/anduril.c
@@ -267,7 +267,8 @@ void loop() {
#ifdef USE_AUX_RGB_LEDS_WHILE_ON
// display battery charge on RGB button during use
- if (! setting_rgb_mode_now) rgb_led_voltage_readout(1);
+ if (! setting_rgb_mode_now)
+ rgb_led_voltage_readout(actual_level > USE_AUX_RGB_LEDS_WHILE_ON);
#endif
if (0) {} // placeholder
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.