aboutsummaryrefslogtreecommitdiff
path: root/hwdef-emisar-d4k-3ch.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* applied new delay factor to other DSM builds, and some new DSM_* definesSelene ToyKeeper2023-10-291-2/+10
|
* converted noctigon-m44 to use PWM+DSM instead of PWM+PFM (dynamic PWM)Selene ToyKeeper2023-10-271-0/+1
| | | | | (this gives better, smoother low modes and reduced flicker)
* minor comment cleanupSelene ToyKeeper2023-10-261-0/+1
|
* rewrote emisar-d4k-3ch to use delta-sigma modulation (PWM + DSM),Selene ToyKeeper2023-10-131-148/+131
| | | | | | | | | | | | | | which gives much better resolution, especially for the 8-bit channel. Also... - set_channel_mode() aborts when going from/to the same channel, to avoid unnecessary flicker - hsv2rgb() uses 16-bit R/G/B and V now - changed default channel to All - reduced default channel modes to just A, B, C, and All - smooth ramp floor defaults to 1/150 - raised level when aux LEDs turn on high during use (for better compatibility with red main LEDs)
* emisar-d4k-3ch auto-tint mode: fixed issue with LEDs turning off at moon,Selene ToyKeeper2023-08-251-5/+12
| | | | | | | | | | and changed algorithm to two simple crossfades instead of one funky and probably incorrect crossfade with an extra triangle in the middle (but it may be best to convert to sine-shaped crossfades instead of linear) (I can't really test this one very will since I don't have D4K hardware with red+warm+cool LEDs, so I'm guessing based on my unbalanced RGB model with the LEDs in the wrong order)
* started splitting set_level(0) into its own set_level_zero(), andSelene ToyKeeper2023-08-251-101/+31
| | | | | | | | | | | made USE_AUX_RGB_LEDS_WHILE_ON work more like the old indicator LEDs, where it gets set automatically with set_level() Using set_level_zero() reduces space used by channel modes, and simplifies code for each mode's set_level_*() functions. I measured about 220 bytes less in the emisar-d4k-3ch build this way, while also reducing the chance of bugs.
* made custom 3H handler system work, added circular HSV ramping,Selene ToyKeeper2023-08-251-11/+22
| | | | | | fixed some minor issues with LEDs not getting turned off in corner cases (strobe on channel 1 -> strobe on channel 2, 1 might not get turned off)
* added emisar-d4k-3ch buildSelene ToyKeeper2023-08-241-0/+421