diff options
| author | Selene ToyKeeper | 2025-07-04 04:57:34 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2025-07-04 04:57:34 -0600 |
| commit | 2b19de99a2c4acd8041a50593ff3a7586fe06a27 (patch) | |
| tree | 5ba7d4e4f2f2dcbade9b34b47035e207d65cc882 /hw | |
| parent | Merge branch 'rgb-voltage-configurable' of github.com:SiteRelEnby/anduril int... (diff) | |
| download | anduril-2b19de99a2c4acd8041a50593ff3a7586fe06a27.tar.gz anduril-2b19de99a2c4acd8041a50593ff3a7586fe06a27.tar.bz2 anduril-2b19de99a2c4acd8041a50593ff3a7586fe06a27.zip | |
made new settings apply to all button LEDs on lights bigger than 8K ROM
This replaces "USE_CONFIGURABLE_RGB_VOLTAGE_LEVELS"
with "USE_AUX_THRESHOLD_CONFIG", which controls the brightness of
button LEDs while the main LEDs are on,
and during post-off voltage display.
Same basic concept, but works on single-color LEDs too,
and lets the user finally configure POVD thresholds.
The code for this is a bit messy, but the aux LED code as a whole
is pretty messy since it wasn't designed for the things it does now.
The entire thing needs a refactor or rewrite someday. But not today.
For now, this is just enough to make the pull request
cover more use cases before merging into trunk.
I've tested it on a variety of lights, but am not yet entirely
comfortable with it. However, it worked on at least these:
- 1-color button LED, no RGB
- front RGB, 1-color button LED
- front RGB, hardwired also to RGB button
- RGB button, no other aux
These may need extra changes,
and may have extra config options which do nothing...
- front RGB, no button LED
- 1-color front aux, no button LED
- no aux at all
- attiny85 lights (some could theoretically support the new options,
but none even try)
Diffstat (limited to '')
| -rw-r--r-- | hw/hank/emisar-d1v2/7135-fet/anduril.h | 1 | ||||
| -rw-r--r-- | hw/hank/emisar-d1v2/linear-fet/anduril.h | 1 | ||||
| -rw-r--r-- | hw/hank/emisar-d1v2/nofet/anduril.h | 1 | ||||
| -rw-r--r-- | hw/hank/emisar-d4k-3ch/anduril.h | 1 | ||||
| -rw-r--r-- | hw/hank/noctigon-k1/anduril.h | 1 | ||||
| -rw-r--r-- | hw/hank/noctigon-k1/boost/anduril.h | 1 | ||||
| -rw-r--r-- | hw/hank/noctigon-k1/sbt90/anduril.h | 1 | ||||
| -rw-r--r-- | hw/wurkkos/fc13/anduril.h | 1 | ||||
| -rw-r--r-- | hw/wurkkos/ts11/anduril.h | 1 |
9 files changed, 0 insertions, 9 deletions
diff --git a/hw/hank/emisar-d1v2/7135-fet/anduril.h b/hw/hank/emisar-d1v2/7135-fet/anduril.h index 8682585..968162a 100644 --- a/hw/hank/emisar-d1v2/7135-fet/anduril.h +++ b/hw/hank/emisar-d1v2/7135-fet/anduril.h @@ -15,7 +15,6 @@ // so it's unlikely that anyone needs this, but it doesn't hurt anything) #define USE_AUX_RGB_LEDS #define USE_AUX_RGB_LEDS_WHILE_ON 25 -#define USE_CONFIGURABLE_RGB_VOLTAGE_LEVELS #define USE_INDICATOR_LED_WHILE_RAMPING // safe limit ~50% power diff --git a/hw/hank/emisar-d1v2/linear-fet/anduril.h b/hw/hank/emisar-d1v2/linear-fet/anduril.h index a15fa5e..1d09001 100644 --- a/hw/hank/emisar-d1v2/linear-fet/anduril.h +++ b/hw/hank/emisar-d1v2/linear-fet/anduril.h @@ -13,7 +13,6 @@ // the aux LEDs are in the button, so use them while main LEDs are on #define USE_AUX_RGB_LEDS #define USE_AUX_RGB_LEDS_WHILE_ON 25 -#define USE_CONFIGURABLE_RGB_VOLTAGE_LEVELS #define USE_INDICATOR_LED_WHILE_RAMPING // safe limit: max regulated power diff --git a/hw/hank/emisar-d1v2/nofet/anduril.h b/hw/hank/emisar-d1v2/nofet/anduril.h index 7900d98..1c320e7 100644 --- a/hw/hank/emisar-d1v2/nofet/anduril.h +++ b/hw/hank/emisar-d1v2/nofet/anduril.h @@ -13,7 +13,6 @@ // the aux LEDs are in the button, so use them while main LEDs are on #define USE_AUX_RGB_LEDS #define USE_AUX_RGB_LEDS_WHILE_ON 25 -#define USE_CONFIGURABLE_RGB_VOLTAGE_LEVELS #define USE_INDICATOR_LED_WHILE_RAMPING // safe limit: same as regular ramp diff --git a/hw/hank/emisar-d4k-3ch/anduril.h b/hw/hank/emisar-d4k-3ch/anduril.h index ede62b3..722fa89 100644 --- a/hw/hank/emisar-d4k-3ch/anduril.h +++ b/hw/hank/emisar-d4k-3ch/anduril.h @@ -12,7 +12,6 @@ // turn on the aux LEDs while main LEDs are on // (in case there's a RGB button) #define USE_AUX_RGB_LEDS_WHILE_ON 40 -#define USE_CONFIGURABLE_RGB_VOLTAGE_LEVELS #define USE_INDICATOR_LED_WHILE_RAMPING // channel modes... diff --git a/hw/hank/noctigon-k1/anduril.h b/hw/hank/noctigon-k1/anduril.h index 48dc947..06a9b69 100644 --- a/hw/hank/noctigon-k1/anduril.h +++ b/hw/hank/noctigon-k1/anduril.h @@ -14,7 +14,6 @@ // this light has three aux LED channels: R, G, B #define USE_AUX_RGB_LEDS #define USE_AUX_RGB_LEDS_WHILE_ON 5 -#define USE_CONFIGURABLE_RGB_VOLTAGE_LEVELS #define USE_INDICATOR_LED_WHILE_RAMPING diff --git a/hw/hank/noctigon-k1/boost/anduril.h b/hw/hank/noctigon-k1/boost/anduril.h index 01969eb..4ea1127 100644 --- a/hw/hank/noctigon-k1/boost/anduril.h +++ b/hw/hank/noctigon-k1/boost/anduril.h @@ -17,7 +17,6 @@ // this light has three aux LED channels: R, G, B #define USE_AUX_RGB_LEDS #define USE_AUX_RGB_LEDS_WHILE_ON 25 -#define USE_CONFIGURABLE_RGB_VOLTAGE_LEVELS #define USE_INDICATOR_LED_WHILE_RAMPING #if 0 // old, 10-bit PWM method diff --git a/hw/hank/noctigon-k1/sbt90/anduril.h b/hw/hank/noctigon-k1/sbt90/anduril.h index ef9e067..6943a0a 100644 --- a/hw/hank/noctigon-k1/sbt90/anduril.h +++ b/hw/hank/noctigon-k1/sbt90/anduril.h @@ -14,7 +14,6 @@ // this light has three aux LED channels: R, G, B #define USE_AUX_RGB_LEDS #define USE_AUX_RGB_LEDS_WHILE_ON 10 -#define USE_CONFIGURABLE_RGB_VOLTAGE_LEVELS #define USE_INDICATOR_LED_WHILE_RAMPING diff --git a/hw/wurkkos/fc13/anduril.h b/hw/wurkkos/fc13/anduril.h index dd23d4a..db766c7 100644 --- a/hw/wurkkos/fc13/anduril.h +++ b/hw/wurkkos/fc13/anduril.h @@ -10,6 +10,5 @@ // turn on the aux LEDs while main LEDs are on #define USE_AUX_RGB_LEDS_WHILE_ON 20 -#define USE_CONFIGURABLE_RGB_VOLTAGE_LEVELS #define USE_INDICATOR_LED_WHILE_RAMPING diff --git a/hw/wurkkos/ts11/anduril.h b/hw/wurkkos/ts11/anduril.h index e329c38..169c848 100644 --- a/hw/wurkkos/ts11/anduril.h +++ b/hw/wurkkos/ts11/anduril.h @@ -12,6 +12,5 @@ // (but not until the main LEDs are bright enough to overpower the aux) // (setting this lower makes an annoying effect on some levels) #define USE_AUX_RGB_LEDS_WHILE_ON 50 -#define USE_CONFIGURABLE_RGB_VOLTAGE_LEVELS #define USE_INDICATOR_LED_WHILE_RAMPING |
