Add initial scripts for LED control and network scanning
This commit is contained in:
8
blink_onboard_led.py
Normal file
8
blink_onboard_led.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from machine import Pin, Timer
|
||||
led = machine.Pin("LED", machine.Pin.OUT)
|
||||
timer = Timer()
|
||||
|
||||
def blink(timer):
|
||||
led.toggle()
|
||||
|
||||
timer.init(freq=2.5, mode=Timer.PERIODIC, callback=blink)
|
||||
Reference in New Issue
Block a user