According to manual "S%,1000" should change only GPIO5 keeping other GPIOs intact. wierd.
From the
manual:
3.1.4 Disabling Output DriversUse the S%,1000 command to set all GPIO pins (0 to 11) to inputs. This command also turns off the FireFly adapter LED (GPIO5).GPIO Commands say nothing about 3.1.4 but there is a formula: PARAMETER[15:0] = MASK[7...0]<<8 || VALUE[7..0]
So, to turn off just GPIO5 that would be: (1<<5)*256 + (1<<5)*0 = 1000h, but I guess it also disables all output drivers, whatever that means.
I just tried S%,1000 in the config mode and effectively killed the board the second time, couldn't get access to command mode after that, had to reset again.
NB! It seems that to reset BT you have to unplug USB, switch BT on, short the F.RST and then plug USB back keeping F.RST shorted for a second.
Skipping rn42_linked() doesn't seem to help, maybe someone will investigate. I only have this controller for a couple of days.
S@,1000 had no effect whatsoever (even in the middle of the init_rn42() sequence). I'd be really glad to turn that freaking LED off...
In fact, there are 2 leds in bluetooth mode (red+green=orange) + one led when the battery is low, so 3 leds combined, 45-60 ma overall draw, I guess.