aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-ramping.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-08-12got PFM / dynamic PWM actually working on Noctigon KR4Selene ToyKeeper1-0/+8
(and also added "jump start moon" to it) (and generally finished adding dynamic PWM support to FSM)
2020-10-16start tint at 0 instead of 128 on lights with toggle instead of rampSelene ToyKeeper1-0/+4
2020-07-30reduced ROM another 12+6 bytes with more non-volatile varsSelene ToyKeeper1-1/+1
(because they don't need to be volatile any more)
2020-07-29reduced ROM size 56 bytes by making actual_level non-volatileSelene ToyKeeper1-1/+1
(seems unnecessary now; doesn't change in the middle of an event handler any more)
2019-08-06un-hardcoded 255 as the highest PWM level, and used a "PWM_TOP" value insteadSelene ToyKeeper1-0/+3
(should make gradual adjustments work better on devices with more than 8 bits of PWM resolution)
2019-08-05fixed weird ramp behavior on D1S v2 (by trusting the compiler more)Selene ToyKeeper1-1/+4
2019-07-30fsm-ramping: made it possible to change bit depth of PWM values (8-bit or ↵Selene ToyKeeper1-23/+35
16-bit)
2019-05-14added tint ramping power correction for middle tintsSelene ToyKeeper1-0/+1
(it actually needs a surprisingly large correction factor)
2018-12-19configured lantern stepped ramp and button LED mode, set default tint to 128 ↵Selene ToyKeeper1-1/+1
(balanced)
2018-09-13Added tint ramping. Not tested yet. Also added BLF Lantern build target.Selene ToyKeeper1-0/+4
2018-06-27Made high levels regulate down even faster. Added missing save_config() at ↵Selene ToyKeeper1-8/+8
the end of, um, config modes. Fixed ramp table indentation.
2018-06-27Move driver-specific ramp tables into the driver's config file.Selene ToyKeeper1-25/+17
Added a method to allow driver configs to override default ramp tables.
2018-06-24Initial D4S support for Anduril. (but only the parts which can't be public yet)Selene ToyKeeper1-0/+20
2018-05-01Added BLF GT 150-level ramp. Is a bit of a mess though.Selene ToyKeeper1-11/+26
2017-12-11Working toward a FW3A release now. Made strobes use Nx7135 (when available) ↵Selene ToyKeeper1-1/+5
instead of FET. Added some ideas. Simplified some syntax.
2017-09-26Added dynamic underclocking to FSM, instead of doing it manually in Anduril.Selene ToyKeeper1-0/+2
2017-09-24Cut moon power from ~4mA to ~2.5mA by running clock at half speed on very ↵Selene ToyKeeper1-1/+1
low modes. Adjusted default FET+1 ramp to compensate for speed bump. Added define(s) for whether to blink at ramp floor/ceiling/channel edges. Lowered default moon level to 1, since slower speed makes it brighter and more stable.
2017-09-22Added FW3A driver support to FSM and Anduril.Selene ToyKeeper1-6/+6
Made lightning storm mode look a bit more like real lightning. Minor refactoring on how single-option config modes save state.
2017-09-09Made thermal regulation adjust smoothly (1 PWM step at a time) to make ↵Selene ToyKeeper1-0/+7
adjustments less noticeable. Added set_level_gradually() and gradual_tick() to ramping lib. Not terribly happy with it yet, but it at least works in practice. Added extra thermal regulation checks because I was running into stupid behavior in edge cases. Increased lowest thermal stepdown level to MAX_LEVEL/3 because it was going down way too low before. (is still pretty low, but not quite as bad)
2017-08-27Adjusted default 2-channel 150-step ramp to start at 1/255.Selene ToyKeeper1-1/+6
(this makes the newly-configurable moon mode able to work on pretty much any hardware)
2017-08-24Added a ramping UI example.Selene ToyKeeper1-6/+79
Added ramping support in general.
2017-08-19Renamed from RoundTable to SpaghettiMonster (FSM).Selene ToyKeeper1-1/+1
2017-08-18Some early ideas for Round Table. Nothing close to compile-able yet.Selene ToyKeeper1-15/+9
2017-03-26Fixed a compiler warning about tk-random.h.Selene ToyKeeper1-1/+4
2015-10-12Made pgm_rand() more erratic (beginning of PROGMEM is boring for this purpose),Selene ToyKeeper1-2/+3
made random strobe smaller and better-looking.
2015-10-12Oops, forgot to add tk-random header.Selene ToyKeeper1-0/+28