aboutsummaryrefslogtreecommitdiff
path: root/bin/flash-tiny1616.sh
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-11-13 05:06:17 -0700
committerSelene ToyKeeper2021-11-13 05:06:17 -0700
commit56fed712d41b0f5f19e91d84c802a3a6079e771c (patch)
tree23cef40543fea2e085d01d01f5a16d3cf3a9a8a4 /bin/flash-tiny1616.sh
parentreduced SP10 firefly/moon power usage slightly, by keeping CPU underclocked m... (diff)
downloadanduril-56fed712d41b0f5f19e91d84c802a3a6079e771c.tar.gz
anduril-56fed712d41b0f5f19e91d84c802a3a6079e771c.tar.bz2
anduril-56fed712d41b0f5f19e91d84c802a3a6079e771c.zip
increased SP10 PWM speed as much as possible without making ramp bumpy, and 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.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions