aboutsummaryrefslogtreecommitdiff
path: root/fsm/ramping.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* made new settings apply to all button LEDs on lights bigger than 8K ROMSelene ToyKeeper2025-07-041-6/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* Merge branch 'main' into rgb-voltage-configurableSiteRelEnby2024-04-201-0/+5
|\
| * d3aa: got weak battery detection actually working,Selene ToyKeeper2024-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and not letting the magic smoke out of updi adapters any more (probably) The alkaline detection might be a little too lenient though; it could potentially fail to activate limits when the cell is completely full or stronger than an average alkaline. One of my test cells measured at 72 / 75, so if it was just a little stronger it'd pass... but most alkalines I tried were in the 40 to 60 range and failed easily. OTOH, if I make it easier to fail, it's likely to trip on normal li-ion cells, and I don't want that. So as a future enhancement idea, maybe it should have a smaller sag threshold for AA and a larger threshold for li-ion. That would reduce false negatives for AA, while still preventing false positives for li-ion.
| * dammit, got alkaline detection half working and then my flashing adapter diedSelene ToyKeeper2024-03-251-0/+5
| | | | | | | | (saving progress here so I can work on a different branch)
* | Add a feature to make RGB voltage configurableSiteRelEnby2024-04-021-1/+8
|/ | | | | | | Adds two entries to the battery voltage settings menu, the first isathreshold for switching aux to high, and the second sets a minimum level for it to be displayed, also effectively allowing the feature to be entirely disabled if not wanted.
* reorganized project files (part 1)Selene ToyKeeper2023-11-021-0/+259
(just moved files, didn't change the contents yet, and nothing will work without updating #includes and build scripts and stuff)