How to toggle led light? Blink an led?

I want to make an app that can toggle a cell phone led. I found an extension to toggle the led by changing the time interval. It was too slow to minimize the time interval, but I want to toggle the leds faster. Like the picture below, I would like to toggle the led by calculating ‘hz’ or ‘rpm’, but if anyone knows how, I would appreciate your help.

The extension I used now is ‘230c-intermitente.’ It is an extension. But I want to faster toggle led.
http://kio4.com/appinventor/230_extensiones_encender_linterna.htm

Is there any way other than this extension?

If you turn the mobile flashlight on and off quickly you can damage it. It’s not advisable.

1 Like