aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster (unfollow)
Commit message (Collapse)AuthorFilesLines
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
2023-04-15adapted smooth-sunset patch from SammysHPSelene ToyKeeper4-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)
2023-04-15LT1S Pro: added manual memory with a timer by default, like on SP10 ProSelene ToyKeeper1-0/+6
2023-04-15merged gcharts config updates for BLF Q8 t1616Selene ToyKeeper1-2/+11
2023-04-15added gchart's Extended Simple UI (strobes and aux config in simple mode)Selene ToyKeeper2-36/+81
2023-04-15LT1S Pro: reduced visibility of PWM by dropping the TOP values fasterSelene ToyKeeper1-9/+7
(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.
2023-04-14LT1S: added thermal regulationSelene ToyKeeper3-39/+51
... and a bunch of gradual_tick functions ... and abstracted out some of the tint calculations ... and moved some UI settings into cfg.h
2023-04-14LT1S Pro: after measuring, perhaps low aux mode is better after allSelene ToyKeeper1-2/+10
2023-04-14LT1S Pro: added dynamic PWM (much better low modes!)Selene ToyKeeper3-20/+22
2023-04-13refactor progress checkpoint ... got Sofirn LT1S Pro and Emisar D4v2 workingSelene ToyKeeper26-443/+811
with the new channel mode system ... but there's a lot more left to do
2023-04-07merging gchart's changes, part 1...Selene ToyKeeper10-0/+309
+ 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)
2023-03-28added a "tactical mode" on "Off -> 6C"Selene ToyKeeper23-4/+239
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.
2023-03-28strobe modes: added 4C to cycle backward through strobesSelene ToyKeeper1-0/+6
2023-03-28just whitespace / commentsSelene ToyKeeper3-4/+4
2023-02-10fast-blink the aux LED in standby when battery is lowSelene ToyKeeper5-34/+54
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)
2022-10-21fixed voltage calibration resolution on SP10 ProSelene ToyKeeper1-2/+2
and other devices which use a voltage divider (it was 0.1V per step, and is now 0.05V per step)
2022-07-29allow supporting single-color and RGB side button in the same buildSelene ToyKeeper7-12/+46
(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.
2022-07-29added Emisar D1v2 models (old FET+7135, new linear+FET, new linear-only)Selene ToyKeeper4-6/+52
2022-04-14sp10-pro: hard reset phase while turning off, fixes shutoff bug without a delaySelene ToyKeeper1-8/+17
(also, made phase hacks individually selectable)
2022-04-14moved fuses from cfg to hwdef, renamed LED_EN/DISABLE_DELAY to LED_ON/OFF_DELAYSelene ToyKeeper2-32/+22
(also really should rename LED_* to CH1_* and LED2_* to CH2_*)
2022-04-13Created LED_DISABLE_DELAY option and enabled it for SP10 Pro to hopefully ↵Gabriel Hart2-1/+5
eliminate flashes when turning off at certain levels
2022-04-12Added FUSES section to SP10 Pro for building ELF file with BOD Active fuse ↵Gabriel Hart2-4/+16
setting
2022-04-09revert spurious change to version.hSelene ToyKeeper1-1/+4
(forgot to revert it after build test, before merge commit)
2022-04-09k9.3 tint-toggle build is broken, generate a better fail error (until it's ↵Selene ToyKeeper2-0/+2
fixed)
2022-03-30added KR4-12V build, fixed model number for DM11-SBT90 buildSelene ToyKeeper3-1/+73
2022-03-24added Noctigon DM11-SBT90.2 buildSelene ToyKeeper1-0/+73
(which is mostly like the regular linear+FET build, but has the switch on a different pin for some reason)
2022-01-29Tweak a few MT35Mini settingsGabriel Hart3-2/+54
2022-01-05Experimental: add optional delay when using LED_ENABLE_PIN to avoid flashes ↵Gabriel Hart2-2/+12
of light (this time for LED2_ENABLE pin)
2022-01-04Experimental: add optional delay when using LED_ENABLE_PIN to avoid flashes ↵Gabriel Hart2-1/+11
of light
2021-12-13fixed bug where tint-ramping could end up 1 brightness ramp step different ↵Selene ToyKeeper1-1/+3
than it started
2021-12-13Added "Lockout 3C -> Off", changed Lockout 4H blink (light) to a blip (dark),Selene ToyKeeper4-1/+28
adjusted a couple builds which overflowed.
2021-12-08enabled SOS mode on lights which have enough room for itSelene ToyKeeper3-2/+4
2021-12-08added a compile option for USE_LOWPASS_WHILE_ASLEEP,Selene ToyKeeper5-5/+32
but it doesn't actually fix the issue I was hoping it'd fix, so it's disabled by default (when the battery is right on a threshold between colors for aux LED "voltage" mode, it can bounce between colors until the cell isn't on the boundary any more... but a simple lowpass doesn't really help) (but I also didn't want to throw out the code, in case it's useful later as a reference for a more effective solution)
2021-12-08fixed Ramp 3H with Anduril 2 style turboSelene ToyKeeper3-0/+16
(it was going to ceiling instead of full power) (also had to disable battcheck calibration on some large builds to make room)
2021-11-13enabled manual memory and timer by default;Selene ToyKeeper1-0/+6
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.
2021-11-13increased SP10 PWM speed as much as possible without making ramp bumpy, and ↵Selene ToyKeeper3-5/+13
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.
2021-11-12a bit more fine-tuning for DM11Selene ToyKeeper3-8/+9
2021-11-12added DM11 to MODELS fileSelene ToyKeeper1-0/+3
2021-11-12fine-tuned DM11-12V build a bit based on actual measurementsSelene ToyKeeper1-7/+11
2021-11-06reduced SP10 firefly/moon power usage slightly, by keeping CPU underclocked ↵Selene ToyKeeper1-1/+1
more until ch2 activates
2021-11-06reduced SP10 downward ramp flicker even moreSelene ToyKeeper1-4/+4
(reduced PWM_TOP minimum timing window to 32 cpu cycles, to allow TOP value of 64 to work better)
2021-11-06greatly smoothed out SP10 ramp, and configured defaultsSelene ToyKeeper1-16/+24
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)