Camera Flash LED flashlight

dbzfanatic

Senior Member
Jun 21, 2010
1,063
282
0
Now I know this has probably been asked before and I did search but found nothing. Is there a way to programatically turn the flash LED on (at certain intensities preferably) and off, and/or for different lengths of time? This is of course for myTouch 3GS but a generic way for more compatibility would be great. Example code would be greatly helpful if you can provide some.

Sent from my ROOTED myTouch 3G Slide using XDA App
 

bmfc187

Senior Member
Feb 2, 2009
431
14
0
Austin, TX
You didn't search too hard cuz there is already a thread about this in the mt3gs forum...if you search the mt3gs, well...its there...

Here ill save you the trouble...go to market and download "LED Desire Light"...

Then report this thread to the mods and have them delete it since its a useless repeat thread...you can do that by clicking the exclamation point in the top right corner of your first post...thanks.

-BMFC
 

dbzfanatic

Senior Member
Jun 21, 2010
1,063
282
0
I did search that forum specifically I just apparently used different terms than you. Downloading an app doesn't really help if I need code does it? Which terms did you use?

Sent from my ROOTED myTouch 3G Slide using XDA App
 

britoso

Senior Member
Jan 13, 2010
2,791
301
163
Orlando
look for the flashlight controller device file under /sys/devices/...
from what i've seen, sending a 0, 127 or 255 to the file turns it off, on-permanently, on-for-a-short-duration respectively.
Other values may work too.

i.e echo 255 > /sys/devices/...../flashlight/brightness