aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fixed D4Sv2-tintramp PWM_TOP (should be set to the value it needs during ↵Selene ToyKeeper2021-09-081-2/+2
| | | | thermal regulation)
* copied Q8 hwdef to LT1 so I can improve itSelene ToyKeeper2021-09-081-0/+21
|
* fixed outdated comment in KR4 hwdefSelene ToyKeeper2021-09-081-1/+1
|
* got D4Sv2 tint ramping to work, with dynamic PWM (PFM)Selene ToyKeeper2021-09-084-80/+121
| | | | | | | | | and (maybe) thermal regulation (untested) (also broke BLF LT1 in the process; need to fix that now) Rewrote how tint ramping works, so it provides a virtual "PWM1_LVL" for other code to use, and it translates that internally into actual hardware controls. This should, in theory, allow smooth thermal regulation (gradual_tick) to work on tint-ramp lights.
* copied k9.3 config for new d4sv2-tintrampSelene ToyKeeper2021-09-071-0/+85
|
* adjusted hwdef settings for tint-ramping D4Sv2Selene ToyKeeper2021-09-071-17/+25
| | | | | (initial rev, will almost certainly need changes later)
* copied hwdef from K9.3 for new tint-ramping D4Sv2Selene ToyKeeper2021-09-071-0/+164
|
* merged in a bunch of new features...Selene ToyKeeper2021-08-3115-95/+320
|\ | | | | | | | | | | | | | | | | + runtime option for smooth ramp speed + runtime option for whether hold-from-off should ramp up or stay at the floor + runtime option to select turbo style / 2C style in Advanced UI + same thing, but for Simple UI * sped up the auto-reverse timing window; it was too slow
| * fixed builds which failed to compile after recent changesSelene ToyKeeper2021-08-314-2/+8
| |
| * reduced length of auto-reverse timing window from ~1000 ms to ~660ms, ↵Selene ToyKeeper2021-08-314-3/+6
| | | | | | | | because it was too fast
| * documented recent changes in the user manualSelene ToyKeeper2021-08-311-20/+64
| |
| * made 2C ceiling/turbo behavior configurable in Simple UISelene ToyKeeper2021-08-316-47/+95
| | | | | | | | | | | | | | | | | | | | also made it possible to block turbo in Advanced UI (each one has a 2C style: 0 = no turbo, only ceiling 1 = Anduril 1 style, direct to turbo 2 = Anduril 2 style, ceiling unless already there, then turbo )
| * added third 2C style: 0 = no turbo (but it's still available as momentary)Selene ToyKeeper2021-08-312-2/+10
| | | | | | | | | | (also, adding this reduced the ROM size somehow)
| * added runtime option to choose Anduril 1 or Anduril 2 double-click turbo styleSelene ToyKeeper2021-08-318-17/+55
| | | | | | | | | | | | (2C while on goes to full-power turbo (A1) or ceiling (A2)) also renamed _OPTION defs to _CONFIG for consistency
| * added runtime option to select whether to ramp up after hold-from-off ↵Selene ToyKeeper2021-08-316-11/+49
| | | | | | | | (default) or stay at floor
| * added runtime config option for smooth ramp speedSelene ToyKeeper2021-08-315-21/+61
|/
* made it possible to use autolock in simple UISelene ToyKeeper2021-08-271-7/+1
| | | | | (requires the user to set it up, so it won't happen to new users unless they do it on purpose)
* added documentation for the global config menu and jump start levelSelene ToyKeeper2021-08-231-0/+26
|
* moved jump start into FSM so it'll be more universal and the app won't need ↵Selene ToyKeeper2021-08-2311-40/+39
| | | | | | | special clauses (also adjusted KR4 jump start levels a bit)
* made jump start level configurable at runtime, and made it activate in more ↵Selene ToyKeeper2021-08-237-4/+64
| | | | places
* force reset PWM phase when turning on from zeroSelene ToyKeeper2021-08-231-3/+27
| | | | | | (to make initial response consistent) (otherwise, it can randomly take up to ~16ms to turn on)
* merged digitalcircuit's branch to make autolock timer configurable at build timeSelene ToyKeeper2021-08-191-1/+4
|\
| * add configurable #define DEFAULT_AUTOLOCK_TIMEShane Synan2021-07-121-1/+4
| | | | | | | | | | | | | | | | | | Added a new #define DEFAULT_AUTOLOCK_TIME to simplify compiling firmware with the autolock timer enabled by default. If this is not specified, the autolock timer remains disabled by default. This removes the need to modify lockout-mode.h directly.
* | merged digitalcircuit's anduril2_opt_disable_autocal_therm branch,Selene ToyKeeper2021-08-192-2/+14
|\ \ | | | | | | | | | allowing configs to disable the thermal autocalibration feature
| * | added #define USE_THERM_AUTOCALIBRATE to opt outShane Synan2021-07-132-2/+14
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved factory reset thermal auto-calibration behind a new default-on config #define USE_THERM_AUTOCALIBRATE. Commenting this out or the usual #ifdef/#undef in a cfg-[...].h build file allows for manually calibrating the temperature offset. This may be useful for factory-calibrated temperature sensors or for those who regularly flash custom builds and don't want to recalibrate each time. Determining the correct temperature offset for a given flashlight first requires flashing a build with auto-calibrate disabled, using that to determine the offset, which can then be baked in to future firmware builds.
* | fixed spurious warnings in level_calc on multi-channel lightsSelene ToyKeeper2021-08-161-1/+3
| | | | | | | | | | (also fixed reported values being too low by a factor of channel.pwm_min)
* | made dynamic PWM phase-correct; replaced brute-force phase reset to avoid ↵Selene ToyKeeper2021-08-161-19/+22
| | | | | | | | | | | | | | flickering (I didn't see any flickering on my lights, but SammysHP reported it was visible)
* | set KR4 default floor higher at Hank's request,Selene ToyKeeper2021-08-142-8/+8
| | | | | | | | | | | | | | | | | | | | | | and reduced the jump-start-moon power a bit too (he says both are good now, but I don't have hardware to measure it myself) The higher floor is because, when the driver is really hot from being on turbo, going directly to moon causes the LEDs to turn off for a while until the driver cools. The new floor is the lowest level where post-turbo activation works reliably. However, it should turn on even at the level 1/150 when it's not hot.
* | clarified the new level_calc calculations a bit, experimented to make sure ↵Selene ToyKeeper2021-08-141-26/+32
| | | | | | | | things are right
* | calibrated KR4 jump-start-moon, may be too high on some older hardwareSelene ToyKeeper2021-08-122-2/+2
| |
* | KR4 thermal regulation no longer needs overrides, because dynamic PWM makes ↵Selene ToyKeeper2021-08-121-2/+3
| | | | | | | | | | | | | | the defaults work better (the overrides were mostly needed as a side effect of having 1024 PWM steps instead of 256)
* | got PFM / dynamic PWM actually working on Noctigon KR4Selene ToyKeeper2021-08-128-33/+89
| | | | | | | | | | | | (and also added "jump start moon" to it) (and generally finished adding dynamic PWM support to FSM)
* | changed Noctigon KR4 from fixed to dynamic PWM TOP value, for later useSelene ToyKeeper2021-08-121-2/+9
| |
* | made PWM TOP value configurable at command line in level_calc.py, and added ↵Selene ToyKeeper2021-08-121-9/+70
| | | | | | | | | | | | | | | | a "dynamic PWM" feature (uses a different PWM TOP at each of the first N ramp levels, to increase resolution at bottom end of ramp)
* | added a "jump start moon" option for hold-from-off, for lights with ↵Selene ToyKeeper2021-08-121-0/+13
| | | | | | | | | | | | slow-activating circuits (briefly pulses the light at a higher level to wake up the circuit faster)
* | made blink_once() brightness configurable per buildSelene ToyKeeper2021-08-121-2/+5
| |
* | document the actual maximum for manual memory timer (~140 minutes, not 255)Selene ToyKeeper2021-08-122-1/+6
| |
* | added Nichia 219B build for KR4 and K9.3, adjusted 219C builds, for intl-outdoorSelene ToyKeeper2021-07-255-5/+38
| |
* | allow building only some targets, instead of always doing allSelene ToyKeeper2021-07-251-0/+13
| |
* | summarize results at end of batch build processSelene ToyKeeper2021-07-221-1/+30
| |
* | give a more useful error message when t1616 files aren't installedSelene ToyKeeper2021-07-221-2/+11
|/
* rewrote hybrid memory (manual memory timer) to eliminate corner casesSelene ToyKeeper2021-07-111-15/+14
| | | | | | | | | | | | | | | | | | | | Old method: - at 1-click power-on, choose a brightness based on off-time (manual level or last-ramped level) New method: - when off longer than the timer, set last-ramped level to manual level This fixes a bug: - turn light off - wait for timer - turn light on with a shortcut to moon - turn light off - turn light on - pre-patch, light went to last-ramped level instead of manual level This change also reduces the ROM size slightly.
* added Emisar D18 Nichia 219 build target (same as normal but reduced FET power)Selene ToyKeeper2021-07-112-0/+15
|
* set Emisar/Noctigon "219" builds to 65% FET powerSelene ToyKeeper2021-07-095-8/+20
| | | | | | (was 75% or 80% before) (change requested by Emisar)
* added missing ifdefs for compiling without USE_SIMPLE_UISelene ToyKeeper2021-05-231-1/+9
| | | | | (compiles now, but isn't tested on hardware)
* oops, somehow I forgot to add this earlier... Hank's UI preferences ↵Selene ToyKeeper2021-05-131-0/+21
| | | | (applies to all Emisar / Noctigon lights)
* made manual memory remember tint too, not just brightnessSelene ToyKeeper2021-05-075-17/+33
|
* aux LED config cleaning...Selene ToyKeeper2021-04-1426-107/+15
| | | | | | | | | | | | | | | | | | | | - use fancy blinking mode by default (define USE_OLD_BLINKING_INDICATOR if old slow mode is wanted) - remove TICK_DURING_STANDBY from all cfg-*.h files because it's enabled automatically by other features anyway (autolock, memory timer) - remove STANDBY_TICK_SPEED from cfg-*.h because all the values matched the default anyway so it was redundant - set rot66 button LED to high+blinking instead of high+off (it was only "off" because it ran out of space, and that was resolved) - enabled fancier indicator by default on fireflies-ui and rampingiosv3, since its other #define clauses were removed (not sure if those older UIs still compile, but if so, it's worth at least trying not to break it)
* config updates for Hank (Emisar / Noctigon):Selene ToyKeeper2021-04-1312-7/+11
| | | | | | | | | | | | - use cycling rainbow mode by default on lights with RGB LEDs (instead of voltage, because it's better for impressing new users) - use 2C turbo instead of 2C ceiling (Anduril 1 style instead of Anduril 2 style) also some other minor housekeeping... - make all K1 models use consistent rainbow cycling speed - enable auto-lock and manual memory timer on Emisar D1v2 - remove redundant RGB config on Lume1 (it had incorrect comments anyway)
* fixed missing ifdef for simple UISelene ToyKeeper2021-04-131-1/+4
|