lp:~toykeeper/flashlight-firmware/sp10-pro

Created by Selene ToyKeeper and last modified
Get this branch:
bzr branch lp:~toykeeper/flashlight-firmware/sp10-pro
Only Selene ToyKeeper can upload to this branch. If you are Selene ToyKeeper please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Selene ToyKeeper
Project:
Flashlight Firmware Repository
Status:
Merged

Recent revisions

632. By Selene ToyKeeper <email address hidden>

fixed SP10 ramp flickering properly, using double-buffered registers
instead of my janky forced phase-reset workaround
(gchart found the solution but couldn't reproduce the issue,
 so I tried his method and confirmed it seems to be fixed)

631. By Selene ToyKeeper <email address hidden>

enabled manual memory and timer by default;
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.

630. By Selene ToyKeeper <email address hidden>

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.

629. By Selene ToyKeeper <email address hidden>

reduced SP10 firefly/moon power usage slightly, by keeping CPU underclocked more until ch2 activates

628. By Selene ToyKeeper <email address hidden>

reduced SP10 downward ramp flicker even more
(reduced PWM_TOP minimum timing window to 32 cpu cycles,
 to allow TOP value of 64 to work better)

627. By Selene ToyKeeper <email address hidden>

greatly smoothed out SP10 ramp, and configured defaults
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)

626. By Selene ToyKeeper <email address hidden>

merged recent anduril2 branch updates

625. By Selene ToyKeeper <email address hidden>

merged gchart's recent changes

624. By Selene Scriven <email address hidden>

merged gchart's SP10 Pro branch
(minus the change to version.h)

623. By Selene Scriven <email address hidden>

clarified where brightness level comes from in beacon/sos/momentary modes

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:flashlight-firmware
This branch contains Public information 
Everyone can see this information.

Subscribers