Erel, thks. I know that. But, how can i switch , for example, an LED On/OFF without additional hardware ? Can i switch, for example, USB power pin ON/OFF ?Use a timer to change the value from 1 to 0 every 0.5 second.
Fatman, thank you. this solution is known by me. But, ..., i wish to turn on/off an external LED. Mybe over audio port? Or USB - eg. switching USB power pin on/off ? Is this possible ?Without additional hardware you may use the internal flash:
http://www.b4x.com/android/forum/threads/flashlight-app.11664/
Fatman
ok, i will try.Have a look at this, and go with Erel's answer: http://stackoverflow.com/questions/1925237/control-usb-ports-power
I don't have an external sourc, or i don't wish to use it. Transformer will be Ok, i will try.The peak audio output is about 1/2V which is too low for an LED by itself. Strat's idea is a good one if you have an external power source. You might be able to use an audio output transformer backwards (for example Radio Shack 273-1380) to kick up the voltage to something an LED would need.