| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | moved definition of BLINK_ONCE_TIME to the same file as BLINK_BRIGHTNESS | Selene ToyKeeper | 2023-05-30 | 2 | -6/+5 |
| | | |||||
| * | fixed aux pre-flash (thanks to wolfgirl42) | Selene ToyKeeper | 2023-05-30 | 1 | -1/+1 |
| | | |||||
| * | documented new version check format | Selene ToyKeeper | 2023-05-30 | 1 | -4/+7 |
| | | |||||
| * | make sure blink_digit(0) uses the same timing as the rest of the UI | Selene ToyKeeper | 2023-05-30 | 1 | -1/+1 |
| | | | | | | (BLINK_ONCE_TIME) | ||||
| * | changed version check from YYYYMMDDXXXX to XXXX.YYYY-MM-DD, | Selene ToyKeeper | 2023-05-30 | 4 | -9/+12 |
| | | | | | | where the punctuation makes a "buzz" instead of number blinks | ||||
| * | Wurkkos models: add red+blue police strobe | Selene ToyKeeper | 2023-05-30 | 1 | -0/+6 |
| | | |||||
| * | with each build, dump a .cpp file with the source after preprocessing | Selene ToyKeeper | 2023-05-30 | 1 | -1/+5 |
| | | | | | | (for easier whole-program debugging) | ||||
| * | synced configs between D4v2 and KR4 | Selene ToyKeeper | 2023-05-30 | 4 | -34/+41 |
| | | |||||
| * | gradual adjustments: handle 0-to-255 in one step on the way up too, not just ↵ | Selene ToyKeeper | 2023-05-30 | 1 | -1/+1 |
| | | | | | down | ||||
| * | fixed bug: regulated down on some lights when not hot | Selene ToyKeeper | 2023-05-30 | 1 | -1/+1 |
| | | | | | | (thermal calibration needs a signed integer, not unsigned) | ||||
| * | converted Noctigon DM11-12V build, renamed to noctigon-dm11-boost | Selene ToyKeeper | 2023-05-17 | 5 | -191/+301 |
| | | |||||
| * | post-off voltage display: use low brightness when torch was at moon level ↵ | Selene ToyKeeper | 2023-05-02 | 7 | -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 TS11 | Selene ToyKeeper | 2023-05-02 | 3 | -2/+43 |
| | | | | | | (and a placeholder for the upcoming Noctigon M44) | ||||
| * | post-off voltage display was slightly too long, default to 4s, not 5s | Selene ToyKeeper | 2023-05-02 | 1 | -1/+1 |
| | | |||||
| * | RGB buttons: while torch is on, use low mode below a configured level | Selene ToyKeeper | 2023-05-02 | 1 | -1/+2 |
| | | | | | | for real-time voltage color display, instead of always using high mode | ||||
| * | documented post-off voltage display config | Selene ToyKeeper | 2023-05-02 | 1 | -57/+64 |
| | | |||||
| * | converted Wurkkos TS25 build... | Selene ToyKeeper | 2023-05-02 | 4 | -150/+273 |
| | | | | | | | ... 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 ToyKeeper | 2023-05-02 | 4 | -11/+52 |
| | | | | | | 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 2 | Selene ToyKeeper | 2023-05-02 | 5 | -2/+29 |
| | | | | | | (1 click per second the display should last) | ||||
| * | fixed bug: channel change could stick when activating a config menu from ↵ | Selene ToyKeeper | 2023-05-02 | 1 | -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 3C | Selene ToyKeeper | 2023-05-02 | 1 | -2/+15 |
| | | |||||
| * | bin/flash-1616.py: added shebang header and +x bit | Selene ToyKeeper | 2023-05-02 | 1 | -1/+3 |
| | | |||||
| * | added ability to set channel mode for number readouts (batt check, temp ↵ | Selene ToyKeeper | 2023-05-02 | 6 | -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 ToyKeeper | 2023-05-02 | 6 | -148/+259 |
| | | |||||
| * | documented a couple recent changes | Selene ToyKeeper | 2023-04-30 | 1 | -0/+4 |
| | | |||||
| * | converted Emisar D4Sv2 build, and updated it to use dynamic PWM | Selene ToyKeeper | 2023-04-29 | 5 | -151/+300 |
| | | |||||
| * | converted KR4-nofet build | Selene ToyKeeper | 2023-04-29 | 3 | -9/+52 |
| | | |||||
| * | D4v2 can use 8-bit ramp tables too | Selene ToyKeeper | 2023-04-29 | 3 | -8/+8 |
| | | |||||
| * | KR4: ramp can use 8 bits, since values never go over 255 | Selene ToyKeeper | 2023-04-29 | 3 | -7/+12 |
| | | | | | | also, don't blink at top of linear range | ||||
| * | missed this file on previous commit | Selene ToyKeeper | 2023-04-29 | 1 | -26/+29 |
| | | |||||
| * | Noctigon KR4: updated to use new channel system | Selene ToyKeeper | 2023-04-29 | 10 | -282/+402 |
| | | | | | | | (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 later | Selene ToyKeeper | 2023-04-29 | 1 | -0/+1 |
| | | |||||
| * | lockout mode: fixed manual memory timer and tint, added 3H next channel, | Selene ToyKeeper | 2023-04-29 | 1 | -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 smoother | Selene ToyKeeper | 2023-04-28 | 1 | -9/+8 |
| | | |||||
| * | D4v2 FET+1 model: works again, and now uses dynamic PWM (lower lows) | Selene ToyKeeper | 2023-04-28 | 5 | -35/+190 |
| | | | | | | (also added generic channel modes for RGB aux LEDs) | ||||
| * | RGB aux: always preview in high mode, and show voltage during 3-second ↵ | Selene ToyKeeper | 2023-04-28 | 1 | -4/+7 |
| | | | | | post-off period | ||||
| * | changed lockout RGB aux default to blinking voltage, instead of blinking disco | Selene ToyKeeper | 2023-04-28 | 1 | -1/+2 |
| | | |||||
| * | only use 2-color strobe in tactical mode if it's on main LEDs, not aux | Selene ToyKeeper | 2023-04-28 | 1 | -1/+4 |
| | | |||||
| * | tactical mode: use police strobe by default, if it exists | Selene ToyKeeper | 2023-04-27 | 1 | -2/+6 |
| | | |||||
| * | Noctigon KR4-tintramp updated to use new channel system | Selene ToyKeeper | 2023-04-27 | 2 | -7/+7 |
| | | | | | | | (was easy since it just uses the generic Emisar-2ch build with a couple small overrides) | ||||
| * | whitespace cleanup | Selene ToyKeeper | 2023-04-26 | 1 | -5/+5 |
| | | |||||
| * | change channel mode per config step in channel mode menu | Selene ToyKeeper | 2023-04-26 | 4 | -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 again | Selene ToyKeeper | 2023-04-26 | 3 | -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 sleep | Selene ToyKeeper | 2023-04-25 | 2 | -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 mode | Selene ToyKeeper | 2023-04-25 | 15 | -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 ToyKeeper | 2023-04-25 | 8 | -85/+555 |
| | | | | | | | ... and reworked how gradual_tick() works ... and updated LT1S Pro to use new method | ||||
| * | added stepped tint ramping | Selene ToyKeeper | 2023-04-19 | 9 | -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 request | Selene ToyKeeper | 2023-04-19 | 3 | -20/+81 |
| | | |||||
| * | made "Ramp 3H" do momentary turbo if current channel mode has no args | Selene ToyKeeper | 2023-04-17 | 4 | -19/+34 |
| | | |||||
| * | LT1S Pro: raised the ramp a bit; it seemed too low in the middle | Selene ToyKeeper | 2023-04-17 | 1 | -2/+9 |
| | | |||||
