aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-05-30moved definition of BLINK_ONCE_TIME to the same file as BLINK_BRIGHTNESSSelene ToyKeeper2-6/+5
2023-05-30fixed aux pre-flash (thanks to wolfgirl42)Selene ToyKeeper1-1/+1
2023-05-30documented new version check formatSelene ToyKeeper1-4/+7
2023-05-30make sure blink_digit(0) uses the same timing as the rest of the UISelene ToyKeeper1-1/+1
(BLINK_ONCE_TIME)
2023-05-30changed version check from YYYYMMDDXXXX to XXXX.YYYY-MM-DD,Selene ToyKeeper4-9/+12
where the punctuation makes a "buzz" instead of number blinks
2023-05-30Wurkkos models: add red+blue police strobeSelene ToyKeeper1-0/+6
2023-05-30synced configs between D4v2 and KR4Selene ToyKeeper2-21/+10
2023-05-30gradual adjustments: handle 0-to-255 in one step on the way up too, not just ↵Selene ToyKeeper1-1/+1
down
2023-05-30fixed bug: regulated down on some lights when not hotSelene ToyKeeper1-1/+1
(thermal calibration needs a signed integer, not unsigned)
2023-05-17converted Noctigon DM11-12V build, renamed to noctigon-dm11-boostSelene ToyKeeper2-25/+28
2023-05-02post-off voltage display: use low brightness when torch was at moon level ↵Selene ToyKeeper7-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)
2023-05-02added Wurkkos FC13 and TS11Selene ToyKeeper3-2/+43
(and a placeholder for the upcoming Noctigon M44)
2023-05-02post-off voltage display was slightly too long, default to 4s, not 5sSelene ToyKeeper1-1/+1
2023-05-02RGB buttons: while torch is on, use low mode below a configured levelSelene ToyKeeper1-1/+2
for real-time voltage color display, instead of always using high mode
2023-05-02documented post-off voltage display configSelene ToyKeeper1-57/+64
2023-05-02converted Wurkkos TS25 build...Selene ToyKeeper1-34/+45
... and gave it a smoother ramp ... and the other new functions added recently
2023-05-02D4v2: added the rest of the aux RGB colors as channel modes,Selene ToyKeeper3-3/+26
and set aux "white" as the mode it uses to blink out numbers
2023-05-02made "post-off voltage display" user-configurable in battcheck 7H menu item 2Selene ToyKeeper5-2/+29
(1 click per second the display should last)
2023-05-02fixed bug: channel change could stick when activating a config menu from ↵Selene ToyKeeper1-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)
2023-05-02documented ramp 6C, ramp 4H, lockout 3H, and battcheck 3CSelene ToyKeeper1-2/+15
2023-05-02added ability to set channel mode for number readouts (batt check, temp ↵Selene ToyKeeper6-5/+39
check, version check) Press 3C in batt check mode to change the blink channel. Also fixed TS10 stepped ramp ceiling value.
2023-05-02converted Wurkkos TS10 build (and made its ramp smoother w/ better low modes)Selene ToyKeeper3-33/+64
2023-04-30documented a couple recent changesSelene ToyKeeper1-0/+4
2023-04-29converted Emisar D4Sv2 build, and updated it to use dynamic PWMSelene ToyKeeper1-26/+48
2023-04-29converted KR4-nofet buildSelene ToyKeeper1-5/+3
2023-04-29KR4: ramp can use 8 bits, since values never go over 255Selene ToyKeeper1-0/+5
also, don't blink at top of linear range
2023-04-29Noctigon KR4: updated to use new channel systemSelene ToyKeeper5-24/+42
(also tweaked D4v2 build to match KR4 as much as possible) (also added Extended Simple UI to Hank's config)
2023-04-29just a todo note for laterSelene ToyKeeper1-0/+1
2023-04-29lockout mode: fixed manual memory timer and tint, added 3H next channel,Selene ToyKeeper1-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.
2023-04-28D4v2: tweaked ramp to make it smootherSelene ToyKeeper1-9/+8
2023-04-28D4v2 FET+1 model: works again, and now uses dynamic PWM (lower lows)Selene ToyKeeper3-18/+72
(also added generic channel modes for RGB aux LEDs)
2023-04-28RGB aux: always preview in high mode, and show voltage during 3-second ↵Selene ToyKeeper1-4/+7
post-off period
2023-04-28changed lockout RGB aux default to blinking voltage, instead of blinking discoSelene ToyKeeper1-1/+2
2023-04-28only use 2-color strobe in tactical mode if it's on main LEDs, not auxSelene ToyKeeper1-1/+4
2023-04-27tactical mode: use police strobe by default, if it existsSelene ToyKeeper1-2/+6
2023-04-27Noctigon KR4-tintramp updated to use new channel systemSelene ToyKeeper1-4/+4
(was easy since it just uses the generic Emisar-2ch build with a couple small overrides)
2023-04-26whitespace cleanupSelene ToyKeeper1-5/+5
2023-04-26change channel mode per config step in channel mode menuSelene ToyKeeper4-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)
2023-04-26made sleep voltage work on attiny1616 againSelene ToyKeeper3-6/+31
(oops, it has no "ADC Noise Reduction" mode... needs different setup code)
2023-04-25put RGB aux LEDs in high mode for 3 seconds after light goes to sleepSelene ToyKeeper2-2/+4
(much easier to see the voltage this way, including post-turbo sag)
2023-04-25fixed bug behind K93_LOCKOUT_KLUDGE which could exit lockout in solid aux modeSelene ToyKeeper15-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
2023-04-25updated D4Sv2-tintramp -> Emisar 2-channel build target ...Selene ToyKeeper3-13/+127
... and reworked how gradual_tick() works ... and updated LT1S Pro to use new method
2023-04-19added stepped tint rampingSelene ToyKeeper9-52/+227
patch adapted from SammysHP: https://github.com/SammysHP/flashlight-firmware/commit/0df174a6f6cc2676703f55a9b86eb3d9b3896b33
2023-04-19LT1S Pro: added white-only auto-tint mode, at gchart's requestSelene ToyKeeper1-6/+8
2023-04-17made "Ramp 3H" do momentary turbo if current channel mode has no argsSelene ToyKeeper3-16/+29
2023-04-17LT1S Pro: raised the ramp a bit; it seemed too low in the middleSelene ToyKeeper1-2/+9
2023-04-17switched the rest of FSM + Anduril to use SPDX license headersSelene ToyKeeper131-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.
2023-04-16reduced ROM by ~600 bytes by moving all eeprom config values to a "cfg" structSelene ToyKeeper28-596/+572
(this also made some parts of the code cleaner)
2023-04-15added ability to use 2 colors in config modeSelene ToyKeeper3-49/+46
2023-04-15enable sunset timer in Extended Simple UISelene ToyKeeper1-1/+1