mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
12 lines
194 B
Python
12 lines
194 B
Python
import random
|
|
import time
|
|
from machine import Pin, Timer
|
|
led = Pin(15, Pin.OUT)
|
|
|
|
while True:
|
|
t = random.randint(5, 45)
|
|
print(t)
|
|
print('PING')
|
|
led.toggle()
|
|
time.sleep(t * 60)
|