Add initial scripts for LED control and network scanning
This commit is contained in:
8
led_blink.py
Normal file
8
led_blink.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from machine import Pin, Timer
|
||||
led = Pin(15, 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