| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
(this also made some parts of the code cleaner)
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
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)
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
(and reduced mid-ramp "stall" behavior)
The red channel seems to behave a little better too,
when PWM is limited to 9 kHz or so instead of 10 kHz.
It really starts spazzing out at even 10.1 kHz, 1% above its spec,
and behaves nicer at 9 kHz or below.
|
| |
|
|
|
|
|
| |
... and a bunch of gradual_tick functions
... and abstracted out some of the tint calculations
... and moved some UI settings into cfg.h
|
| | |
|
| | |
|
| |
|
|
|
| |
with the new channel mode system ... but there's a lot more left to do
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
+ added Sofirn LT1S Pro
+ added Sofirn SC21 Pro
+ added Wurkkos TS10
+ added Wurkkos TS25
* small changes to other models
* improved dual voltage support
+ added attiny1616 flashing python script w/ pymcuprog
These changes are incomplete. It does not yet include:
- extended simple UI
- t1616 WDT reset detection
- gchart's OUTPUT_MUX code (I plan to rewrite the entire tint system)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Tactical Mode is similar to Momentary Mode or Lockout Mode, but it has
three mode slots which are independent of other config values. The default
is a classic tactical setup with "high, low, strobe", each with immediate
activation as soon as the button is pressed.
Each slot can be a regular ramp level 1 to 150, or a strobe-group mode.
To exit, press 6C or loosen/tighten the tailcap.
Aux LEDs follow the same pattern as Lockout Mode.
To configure, use 7H. There are 3 options, one for each slot.
Enter a number 1 to 150 for a ramp mode, 0 for current strobe,
or 151+ for a specific strobe mode.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
3.3V and up: normal aux LED modes
2.9V to 3.3V: fast blink
under 2.9V: off
(only on lights with no RGB aux)
|
| |
|
|
|
| |
and other devices which use a voltage divider
(it was 0.1V per step, and is now 0.05V per step)
|
| |
|
|
|
|
|
|
|
|
|
| |
(new D1v2 comes in both flavors, and it's easier for everyone if
they can use the same firmware)
Also, removed lockout-abort bug on D1v2 (and DM11, I think).
Hopefully some day I'll have time to update to a newer compiler,
and then hopefully it won't have this issue any more... but for now,
it still uses a kludge to trick the compiler into working.
|
| | |
|
| | |
|
| |\ |
|
| | | |
|
| | |
| |
| |
| |
| | |
(also, made phase hacks individually selectable)
|
| | |
| |
| |
| | |
to hex
|
| | |
| |
| |
| |
| | |
(also really should rename LED_* to CH1_* and LED2_* to CH2_*)
|
| | |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- sp10-pro shutoff fix
- mt35-mini support
- power channel enable/disable timing delays
(though I wouldn't recommend doing 80ms like the thefreeman code does,
since that's more than one WDT cycle (16ms))
|
| | | |
| | |
| | |
| | | |
eliminate flashes when turning off at certain levels
|
| | | |
| | |
| | |
| | | |
setting
|
| | | |\
| | |/
| |/|
| | | |
for the Sofirn SP10 Pro after TK merge that branch in
|
| | | | |
|
| | | |
| | |
| | |
| | | |
of light (this time for LED2_ENABLE pin)
|
| | | |
| | |
| | |
| | | |
of light
|
| |/ /
| |
| |
| | |
evolving
|
| | |
| |
| |
| |
| | |
(forgot to revert it after build test, before merge commit)
|
| |\ \ |
|
| | |\ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
instead of my janky forced phase-reset workaround
(gchart found the solution but couldn't reproduce the issue,
so I tried his method and confirmed it seems to be fixed)
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
reset to ~6 lm (level 50/150) after being off for 10 minutes
This sets the factory-reset default settings and affects Simple UI,
so it will likely need confirmation from Sofirn.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
made party strobe pulses much faster
Reduced max PWM TOP to 3072, because 2048 wasn't enough and 4096 was more than necessary.
Also, Ch1 lumens / 256 / ch2 lumens = 6, so 256 * 6 * 2 is the lowest value
which allows ch1 to start at half of ch2's power. I tried 1536 initially, but it made the
ramp visibly malformed at the channel boundary. However, 3072 seems about right.
Implemented a non-linear PWM_TOP ramp-down in level_calc,
to allow it to converge faster and reduce the number of levels with visible pulses.
Added an option to keep the regulator chips on between strobe pulses,
by keeping the LEDs at moon instead of turning completely off.
This allows the SP10 party strobe to use much shorter, more consistent pulses.
|
| | | | |
| | | |
| | | |
| | | | |
more until ch2 activates
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
(reduced PWM_TOP minimum timing window to 32 cpu cycles,
to allow TOP value of 64 to work better)
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
also fixed random ramp stuttering, by adding phase-reset register to hwdef
(though it still has a brief stutter sometimes while ramping down across the channel boundary,
at least it always seems to be smooth while going up now)
|
| | |\ \ \ |
|
| | |\ \ \ \
| | | |_|/
| | |/| | |
|
| | | |\ \ \ |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
the new 2C_STYLE defines
|
| | | | | | | |
|
| | |\| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
(minus the change to version.h)
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
tweak party strobe & LVP level
|