aboutsummaryrefslogtreecommitdiff
path: root/ui (follow)
Commit message (Collapse)AuthorAgeFilesLines
* made new settings apply to all button LEDs on lights bigger than 8K ROMSelene ToyKeeper2025-07-047-39/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 'rgb-voltage-configurable' of github.com:SiteRelEnby/anduril ↵Selene ToyKeeper2025-06-195-12/+52
|\ | | | | | | | | | | | | | | | | into pr10-SiteRelEnby-rgb-voltage-configurable pulling pr10 branch into a feature branch based on a newer trunk * 'rgb-voltage-configurable' of github.com:SiteRelEnby/anduril: Add a feature to make RGB voltage configurable
| * Merge branch 'main' into rgb-voltage-configurableSiteRelEnby2024-09-241-13/+13
| |\
| * \ Merge branch 'main' into rgb-voltage-configurableSiteRelEnby2024-04-201-2/+10
| |\ \
| * | | Add a feature to make RGB voltage configurableSiteRelEnby2024-04-025-12/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | lockout mode now only does momentary moon/low on 1st and 2nd presses,Selene ToyKeeper2025-06-041-8/+14
| | | | | | | | | | | | | | | | so it no longer flashes on each click while advancing to other functions
* | | | hank-lume-x1 cleanup and calibration, part 1:Selene ToyKeeper2024-09-222-10/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - changed model number from 0281 to 0171 - cleaned up blink_negative and AUXLED_RGB_DIFFERENT_PORTS a little (but the latter needs a complete refactor, as soon as the hardware abstraction code can handle aux LEDs better) - cleaned up USE_LONG_BLINK_FOR_NEGATIVE_SIGN a little - removed USE_OTG_IN_MOMENTARY since it's not actually used - moved hw/loneoceans/lume-x1-avr32dd20/* files into hw/hank/lume-x1/ - superficial cleanup on hank/lume-x1/hwdef.* - removed some of the extra stuff from hank/lume-x1/anduril.h - adjusted calibration (especially ramp table) on hank-lume-x1 (ramp shape is pretty close to a D4K-boost now, but with more firefly modes) (calibration is based on a sample size of 1, further testing needed)
* | | | cherry-picked hank-lume-x1 code from ↵Selene ToyKeeper2024-09-222-0/+17
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/loneoceans/anduril/commit/d83ebb75dab8c462b7efa841bccc00a136ff15a2 The [PR](https://github.com/ToyKeeper/anduril/pull/37) has a lot of other stuff in it, so I'm just picking out the parts needed for this particular light, and leaving the rest for later. Will need further edits before merging into trunk.
* | | removed "Off -> 3H" strobe/mood mode access from Extended Simple UISelene ToyKeeper2024-08-041-13/+13
| |/ |/| | | | | | | | | | | | | | | fixes #85 The Simple UI is meant to be relatively child-safe, and the strobe modes are not. Users who want unsafe features enabled should use the full UI instead... and the strobe + mood modes should also have some safety features added, on drivers which have enough ROM to hold extra code.
* | Merge branch 'trunk' into emisar-d3aaSelene ToyKeeper2024-03-295-29/+33
|\| | | | | | | | | | | | | | | | | | | | | | | | | FIXME: The d3aa's voltage calculator needs to be fixed after this merge. * trunk: use smooth steps in lockout mode, if enabled fixed Tactical Mode's strobes when Momentary Mode not enabled increased voltage precision from 0.025V to 0.02V (so 0 to 255 now goes from 0.00V to 5.10V) fixed inaccurate comment (thanks to xikteny for spotting it) Allow manually running GitHub actions workflows Bugfix: Prevent switching channel modes when in tactical mode Bugfix: Tactical mode has a dependency on momentary mode
| * use smooth steps in lockout mode, if enabledSelene ToyKeeper2024-03-291-2/+2
| | | | | | | | | | Based on [SammysHP's patch](https://github.com/ToyKeeper/anduril/pull/18), but only for lockout mode, not tactical.
| * fixed Tactical Mode's strobes when Momentary Mode not enabledSelene ToyKeeper2024-03-281-3/+5
| |
| * Merge branch 'bugfix-tacmode-without-momentary' of ↵Selene ToyKeeper2024-03-282-3/+3
| |\ | | | | | | | | | | | | | | | | | | github.com:SiteRelEnby/anduril into pr46-SiteRelEnby-bugfix-tacmode-without-momentary * 'bugfix-tacmode-without-momentary' of github.com:SiteRelEnby/anduril: Bugfix: Tactical mode has a dependency on momentary mode
| | * Bugfix: Tactical mode has a dependency on momentary modeSiteRelEnby2024-02-022-3/+3
| | | | | | | | | | | | | | | | | | | | | Use case 1: Updating a t85 light, where tactical mode is useful but takes some squeezing, and momentary is less useful Use case 2: Custom builds for people who don't like/want momentary mode
| * | Merge branch 'tactical-mode-3c-fix' of github.com:SiteRelEnby/anduril into ↵Selene ToyKeeper2024-03-281-0/+5
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | pr49-SiteRelEnby-tactical-mode-3c-fix * 'tactical-mode-3c-fix' of github.com:SiteRelEnby/anduril: Bugfix: Prevent switching channel modes when in tactical mode
| | * | Bugfix: Prevent switching channel modes when in tactical modeSiteRelEnby2024-02-141-0/+5
| | |/ | | | | | | | | | Fixes issue https://github.com/ToyKeeper/anduril/issues/40
| * / increased voltage precision from 0.025V to 0.02VSelene ToyKeeper2024-03-271-21/+18
| |/ | | | | | | (so 0 to 255 now goes from 0.00V to 5.10V)
* / dammit, got alkaline detection half working and then my flashing adapter diedSelene ToyKeeper2024-03-251-2/+10
|/ | | | (saving progress here so I can work on a different branch)
* use BLIP_LEVEL instead of 0 for "blip"sSelene ToyKeeper2023-12-152-2/+6
| | | | | This helps when using a regulator which doesn't like being turned off and back on quickly.
* fixed RGB aux turning on in momentary mode when post-off voltage was enabledSelene ToyKeeper2023-11-301-6/+9
|
* saner defaults for the default biking levelSelene ToyKeeper2023-11-302-11/+9
| | | | | | | - set DEFAULT_BIKING_LEVEL in bike mode's header file - use RAMP_SIZE/3 by default - limit to MAX_BIKING_LEVEL if necessary - get rid of any ties to MAX_1x7135 because it's kind of an obsolete symbol
* Merge branch 'fix-nofet-bikeflash' of github.com:digitalcircuit/anduril into ↵Selene ToyKeeper2023-11-301-1/+9
|\ | | | | | | | | | | | | pr23-digitalcircuit-fix-nofet-bikeflash * 'fix-nofet-bikeflash' of github.com:digitalcircuit/anduril: bikeflash: Cap default brightness to max, define
| * bikeflash: Cap default brightness to max, defineShane Synan2023-11-281-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cap fallback default bike flasher brightness to stay below MAX_BIKING_LEVEL, fixing noFET/boost driver builds where MAX_1x7135 is above MAX_BIKING_LEVEL. Add the optional define DEFAULT_BIKING_LEVEL to set the default bike flasher brightness. This is NOT checked against MAX_BIKING_LEVEL, for simplicity. Alternatively, strobe-modes.c could be updated to check if the value exceeds MAX_BIKING_LEVEL at runtime. However, that might take up more flash space. Migrated from https://code.launchpad.net/~digitalcircuit/flashlight-firmware/anduril2_fix_nofet_bikeflash/+merge/408124
* | prevent future issues like the FW3X hadSelene ToyKeeper2023-11-281-4/+5
| | | | | | | | | | | | | | 1/3rd of the ramp size is probably a more reliable default than MAX_1x7135. The 7135-based reference points need to eventually be removed entirely and replaced by something more universal, but for now at least don't fail when a thermal stepdown isn't defined.
* | ADC voltage: battcheck 3 digits, fixed t1616, switched back to 8-bit ↵Selene ToyKeeper2023-11-223-17/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | internal volt unit Before this branch, `voltage` was 6 bits: Volts * 10 A couple patches ago, I upgraded it to 16 bits: 65535 * Volts / 10.24 That costs too much extra ROM on attiny85 though, for extra precision it doesn't even use... so I switched back to an 8-bit value. It's still more precise than before though: Volts * 40 ... and battcheck displays an extra digit now, on devices with ROM for it. ... and battcheck waits a second to get a more accurate measurement before displaying the first value. It has *much* less variation between first and later readings now. Also: - got t1616 builds working again (tested fc13 and thefreeman-boost-fwaa) - upgraded t1616 voltage and temp to 12-bit (10 bits + 4x oversampling) - removed expensive temp conversion from t1616 ADC interrupt - recalibrated t1616 bogomips again; runs faster after interrupt fix - increased t1616 internal VDD measurement resolution by 36% (1.5V Vref, not 1.1V) - fixed sloppy setting of Vref bits I still need to test / update other t1616 builds, and fix all the t85 + t1634 code and build targets.
* | 1.55V AA battery should not show as "white" voltage color, only purpleSelene ToyKeeper2023-11-211-1/+1
| |
* | ramp-mode: allow hwdef to adjust gradual tick speedSelene ToyKeeper2023-11-192-1/+7
| | | | | | | | | | | | | | | | The gradual tick frequency was written for 8-bit PWM, but it can be too slow on hardware with more bits. The hwdef can compensate by using larger steps, but that makes adjustments more visible... So this provides an option to increase speed without visibility.
* | version check: allow hex digitsSelene ToyKeeper2023-11-191-1/+4
| |
* | refactor checkpoint: splitting MCU-specific code into arch/$MCU.[ch]Selene ToyKeeper2023-11-102-10/+14
|/ | | | Phew, that's a lot of changes! And there's still a lot more to do...
* shortened unnecessarily long explanationSelene ToyKeeper2023-11-071-5/+1
|
* Merge branch 'momentary-turbo' of github.com:SammysHP/anduril into ↵Selene ToyKeeper2023-11-071-0/+5
|\ | | | | | | | | | | | | pr-16-SammysHP-momentary-turbo * 'momentary-turbo' of github.com:SammysHP/anduril: Allow turbo in momentary mode
| * Allow turbo in momentary modeSammysHP2023-11-071-0/+5
| |
* | Changed bash and sh shebangs to /usr/bin/envIgor Bulekov2023-11-073-3/+3
|/
* more consistent syntax, to avoid failed builds when various options are usedSelene ToyKeeper2023-11-051-14/+12
|
* Merge branch 'bugfix/no-simple-ui-error' of github.com:johnou/anduril into ↵Selene ToyKeeper2023-11-051-2/+5
|\ | | | | | | | | | | | | johnou-bugfix/no-simple-ui-error * 'bugfix/no-simple-ui-error' of github.com:johnou/anduril: Fix compile error when Simple UI is undefined.
| * Fix compile error when Simple UI is undefined.Johno Crawford2023-11-061-2/+5
| |
* | fixed build errors when #undef USE_MANUAL_MEMORYSelene ToyKeeper2023-11-053-7/+7
| | | | | | | | (previous commit still failed)
* | Fixes syntax errors when USE_MANUAL_MEMORY is undefined.Durval Menezes2023-11-051-1/+7
|/
* documentation updates...Selene ToyKeeper2023-11-031-501/+0
| | | | | | | | - fleshed out main README.md a bit - improved github formatting for docs/which-hex-file.md - added 'make docs' to preview .md files as .html - ignore html files generated by 'make docs' - removed rampingios-v3.html file generated years ago
* renamed tk*.h in file contents, and deleted unused filesSelene ToyKeeper2023-11-034-4/+4
|
* got things to compile again, renamed #includesSelene ToyKeeper2023-11-0225-78/+78
| | | | (also modified the build scripts to work with the new file structure)
* reorganized project files (part 1)Selene ToyKeeper2023-11-0277-0/+16328
(just moved files, didn't change the contents yet, and nothing will work without updating #includes and build scripts and stuff)