Diseño de linterna frontal con celular

Hello, I would like to know if there is an extension or form to be able to design a flashlight but with the front flash (lamp) of the cell phone, if someone could guide me in this aspect, I would appreciate it very much.

The only extension I am aware of


but doesn't seem to offer a choice of front or back. Maybe if combined with a camera selection ?

What happens is that in my application I only want the flash to fire for a moment, so I don't know if with what you tell me about the camera selection is possible

Potresti associare un semplice timer che permetta così di far spegnere il flash secondo le tue necessità.