This commit is contained in:
2025-11-04 17:30:24 -05:00
parent 4de23d6fa5
commit 4cd60205c3

14
Scripts/flashing_led.py Normal file
View File

@@ -0,0 +1,14 @@
from machine import Pin, PWM
from time import sleep
pwm = PWM(Pin(12))
pwm.freq(5000)
while True:
for duty in range(65025):
pwm.duty_u16(duty)
sleep(0.0005)
for duty in range(65025, 0, -1):
pwm.duty_u16(duty)
sleep(0.0005)