aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fixed aux pre-flash (thanks to wolfgirl42)Selene ToyKeeper2023-05-301-1/+1
|
* documented new version check formatSelene ToyKeeper2023-05-301-4/+7
|
* make sure blink_digit(0) uses the same timing as the rest of the UISelene ToyKeeper2023-05-301-1/+1
| | | | | (BLINK_ONCE_TIME)
* changed version check from YYYYMMDDXXXX to XXXX.YYYY-MM-DD,Selene ToyKeeper2023-05-304-9/+12
| | | | | where the punctuation makes a "buzz" instead of number blinks
* Wurkkos models: add red+blue police strobeSelene ToyKeeper2023-05-301-0/+6
|
* synced configs between D4v2 and KR4Selene ToyKeeper2023-05-302-21/+10
|
* gradual adjustments: handle 0-to-255 in one step on the way up too, not just ↵Selene ToyKeeper2023-05-301-1/+1
| | | | down
* fixed bug: regulated down on some lights when not hotSelene ToyKeeper2023-05-301-1/+1
| | | | | (thermal calibration needs a signed integer, not unsigned)
* converted Noctigon DM11-12V build, renamed to noctigon-dm11-boostSelene ToyKeeper2023-05-172-25/+28
|
* post-off voltage display: use low brightness when torch was at moon level ↵Selene ToyKeeper2023-05-027-12/+30
| | | | | | | | before, and skip the voltage display after UI actions which didn't change the mode (like "Off -> 7C" to change aux LED settings)
* added Wurkkos FC13 and TS11Selene ToyKeeper2023-05-023-2/+43
| | | | | (and a placeholder for the upcoming Noctigon M44)
* post-off voltage display was slightly too long, default to 4s, not 5sSelene ToyKeeper2023-05-021-1/+1
|
* RGB buttons: while torch is on, use low mode below a configured levelSelene ToyKeeper2023-05-021-1/+2
| | | | | for real-time voltage color display, instead of always using high mode
* documented post-off voltage display configSelene ToyKeeper2023-05-021-57/+64
|
* converted Wurkkos TS25 build...Selene ToyKeeper2023-05-021-34/+45
| | | | | | ... and gave it a smoother ramp ... and the other new functions added recently
* D4v2: added the rest of the aux RGB colors as channel modes,Selene ToyKeeper2023-05-023-3/+26
| | | | | and set aux "white" as the mode it uses to blink out numbers
* made "post-off voltage display" user-configurable in battcheck 7H menu item 2Selene ToyKeeper2023-05-025-2/+29
| | | | | (1 click per second the display should last)
* fixed bug: channel change could stick when activating a config menu from ↵Selene ToyKeeper2023-05-021-1/+15
| | | | | | | | | battcheck (the blink function changed the channel, then the config menu saved it, then the blink function restored it, then the config menu restored it to the value it saved, which was wrong)
* documented ramp 6C, ramp 4H, lockout 3H, and battcheck 3CSelene ToyKeeper2023-05-021-2/+15
|
* added ability to set channel mode for number readouts (batt check, temp ↵Selene ToyKeeper2023-05-026-5/+39
| | | | | | | | | check, version check) Press 3C in batt check mode to change the blink channel. Also fixed TS10 stepped ramp ceiling value.
* converted Wurkkos TS10 build (and made its ramp smoother w/ better low modes)Selene ToyKeeper2023-05-023-33/+64
|
* documented a couple recent changesSelene ToyKeeper2023-04-301-0/+4
|
* converted Emisar D4Sv2 build, and updated it to use dynamic PWMSelene ToyKeeper2023-04-291-26/+48
|
* converted KR4-nofet buildSelene ToyKeeper2023-04-291-5/+3
|
* KR4: ramp can use 8 bits, since values never go over 255Selene ToyKeeper2023-04-291-0/+5
| | | | | also, don't blink at top of linear range
* Noctigon KR4: updated to use new channel systemSelene ToyKeeper2023-04-295-24/+42
| | | | | | (also tweaked D4v2 build to match KR4 as much as possible) (also added Extended Simple UI to Hank's config)
* just a todo note for laterSelene ToyKeeper2023-04-291-0/+1
|
* lockout mode: fixed manual memory timer and tint, added 3H next channel,Selene ToyKeeper2023-04-291-5/+23
| | | | | | | | | | | | | and made 3H+ use mem level instead of lowest moon (this is needed for making the channel discernible, and also helps make aux LED controls stand out more) The 3H mapping allows users to change channels without leaving lockout, which was possible before with 3H to ramp tint, but doesn't work in new multi-channel code because it uses 3C instead... and 3C is already used. So the new 3H does sort of what the old 3H did, but in a way which is more relevant to the new channel system.
* D4v2: tweaked ramp to make it smootherSelene ToyKeeper2023-04-281-9/+8
|
* D4v2 FET+1 model: works again, and now uses dynamic PWM (lower lows)Selene ToyKeeper2023-04-283-18/+72
| | | | | (also added generic channel modes for RGB aux LEDs)
* RGB aux: always preview in high mode, and show voltage during 3-second ↵Selene ToyKeeper2023-04-281-4/+7
| | | | post-off period
* changed lockout RGB aux default to blinking voltage, instead of blinking discoSelene ToyKeeper2023-04-281-1/+2
|
* only use 2-color strobe in tactical mode if it's on main LEDs, not auxSelene ToyKeeper2023-04-281-1/+4
|
* tactical mode: use police strobe by default, if it existsSelene ToyKeeper2023-04-271-2/+6
|
* Noctigon KR4-tintramp updated to use new channel systemSelene ToyKeeper2023-04-271-4/+4
| | | | | | (was easy since it just uses the generic Emisar-2ch build with a couple small overrides)
* whitespace cleanupSelene ToyKeeper2023-04-261-5/+5
|
* change channel mode per config step in channel mode menuSelene ToyKeeper2023-04-264-6/+34
| | | | | | | | (to show which channel mode is being edited) also, avoid setting channel mode again if it's not going to change (this prevents unnecessary flickering)
* made sleep voltage work on attiny1616 againSelene ToyKeeper2023-04-263-6/+31
| | | | | (oops, it has no "ADC Noise Reduction" mode... needs different setup code)
* put RGB aux LEDs in high mode for 3 seconds after light goes to sleepSelene ToyKeeper2023-04-252-2/+4
| | | | | (much easier to see the voltage this way, including post-turbo sag)
* fixed bug behind K93_LOCKOUT_KLUDGE which could exit lockout in solid aux modeSelene ToyKeeper2023-04-2515-40/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (also reduced avg standby power by about 15 uA) (also fixed oscillating voltage mode colors, I think) The bug happened because sometimes sleep LVP would get triggered, because the ADC would read zero under some conditions. This in turn happened because the ADC needs the MCU to be at least partially awake in order to finish a measurement. So in standby mode, with the MCU only waking up very briefly to send a sleep tick and go back to sleep, the ADC required several cycles (like 375ms to 625ms) to finish a single measurement. This varied depending on how many instructions the MCU executed while it was awake. In the single-color mode, so few instructions were being executed that the ADC seemed to time out and abort its measurement, returning a zero. Then a low voltage warning was sent, which knocked the light back into "Off" mode. Adding no-op instructions inside the single-color clause was sufficient to prevent the ADC from timing out, because it kept the MCU awake just barely long enough. But it was a kludge, and it still took like half a second to finish a measurement, and the measurements were noisy. It also used more power, because it required keeping the ADC powered on far too long. This fix puts the MCU into "ADC Noise Reduction" mode instead, when a voltage measurement is needed during sleep. It reduces noise to make measurements more stable... but more importantly, it lets the measurement finish in like 0.5ms instead of 500ms. So it uses less power and isn't dependent on the number of calculations the MCU does during each "sleep tick". As a bonus, this can also measure voltage much more often, while still using less total energy than before. It was once every 8 seconds, and now it's once per second. Avg power use in aux low mode, on a D4Sv2: (avg of 30k samples each) - before: 101 uA - after: 86 uA
* updated D4Sv2-tintramp -> Emisar 2-channel build target ...Selene ToyKeeper2023-04-253-13/+127
| | | | | | ... and reworked how gradual_tick() works ... and updated LT1S Pro to use new method
* added stepped tint rampingSelene ToyKeeper2023-04-199-52/+227
| | | | | | patch adapted from SammysHP: https://github.com/SammysHP/flashlight-firmware/commit/0df174a6f6cc2676703f55a9b86eb3d9b3896b33
* LT1S Pro: added white-only auto-tint mode, at gchart's requestSelene ToyKeeper2023-04-191-6/+8
|
* made "Ramp 3H" do momentary turbo if current channel mode has no argsSelene ToyKeeper2023-04-173-16/+29
|
* LT1S Pro: raised the ramp a bit; it seemed too low in the middleSelene ToyKeeper2023-04-171-2/+9
|
* switched the rest of FSM + Anduril to use SPDX license headersSelene ToyKeeper2023-04-17131-1319/+534
| | | | | | | instead of full GPL headers (or all too often, nothing at all) There are a few "FIXME" entries where I'm not sure about the correct copyright.
* reduced ROM by ~600 bytes by moving all eeprom config values to a "cfg" structSelene ToyKeeper2023-04-1628-596/+572
| | | | | (this also made some parts of the code cleaner)
* added ability to use 2 colors in config modeSelene ToyKeeper2023-04-153-49/+46
|
* enable sunset timer in Extended Simple UISelene ToyKeeper2023-04-151-1/+1
|
* adapted smooth-sunset patch from SammysHPSelene ToyKeeper2023-04-154-95/+41
| | | | | | | | https://github.com/SammysHP/flashlight-firmware/tree/smooth-sunset https://github.com/SammysHP/flashlight-firmware/compare/anduril2...smooth-sunset (also shortened file headers, as long as I was touching those files)