That would be fantastic if the flash/led could be used. It would greatly simplify the addition of my phototransistor. I'll check back later to see if you had any success.
New build attached. I've tested on one of my N's and it works well.
This change enables 3 LED options for the
set_led(led#,state,brightness) function, where
led# is 0 for the green power button LED, 1 for focus assist mode on the front lamp (dim), or 2 for "camera flash" mode of the front lamp (bright).
state is 0 for off, 1 for on. As per current convention for everything but the oldest Powershots,
brightness is ignored.
I briefly considered having only two valid
led# values and using the
brightness parameter to determine off/dim/bright for the focus assist/flash lamp. But then I decided I was just being fancy and left it with three
led# choices.
Patch file posted in the appropriate place so that this gets into the autobuild in the next couple of days.
Thanks for giving it a look. A lot of this code work is a bit above my pay grade
Given the compensation model for working on CHDK (zero dollars, a lifetime of fun), I'm not sure there is anything below or above our pay grades