Add initial scripts for LED control and network scanning

This commit is contained in:
2025-11-11 19:30:43 -05:00
parent 13f5e6465a
commit 9d8df6bcbe
13 changed files with 288 additions and 0 deletions

14
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)