Make LED flicker

How do I make the LED flicker and not just turn it ON or OFF?A button click should rapidly make the LED flicker and another should turn it OFF

by changing the PWM pin values you can make the led flicker

What exactly do you mean?

in module 3 you have “bolt with pwm” topic in that by changing the values in that program you can make led flicker

That is just modulating the values of brightness of the LED isn’t it?I want to turn it ON and OFF at a constant brightness…like in a loop

oh okay then you can do this be delay operation

http://tripent.net/2016/05/delay-in-javascript/

Hey

Make an account on the digital ocean and create the droplet on the digital ocean. Open Putty and the login Into your Digital Ocean Acc with Putty.
Run the Code

/* LED Blink */
import requests
import time
import json
while True:
r = requests.get('http://139.59.25.153/remote/e88549e0-6fdb-45a3-9a7b-$
time.sleep(1)
r = requests.get('http://139.59.25.153/remote/e88549e0-6fdb-45a3-9a7b-$
time.sleep(1)
r.text

Dipendra Chundawat
User-Support Inventrom

1 Like

No, it may seem like it’s only making it brighter or dimmer. But in reality you making it flicker really really fast.
If you move the LED while it’s in PWM mode, you’ll see what I mean.

1 Like

You can also achive the flikering via Bolt APIs. Only change the Sleep value from 1 to something much lesser such as 0.001 etc.

1 Like

Using PWM you can do the flickering of the LED.