Jump to content

NodeMCU Projects: Difference between revisions

Line 58:
import machine
import time
import urandom
 
pin = machine.Pin(2, machine.Pin.OUT)
Line 65 ⟶ 66:
 
while True:
time.sleep_ms(iurandom.getrandbits(8))
for i in range(100,999):
time.sleep_ms(i)
toggle(pin)
</syntaxhighlight>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.