Files
Raspberry-Pi-Pico-Thermostat/Scripts/main.py
2024-01-16 11:14:17 -05:00

13 lines
261 B
Python

from machine import Pin, Timer
# First Testing Env
ledMachine = machine.Pin("LED", machine.Pin.OUT)
# led = Pin(12, Pin.OUT)
timer = Timer()
def blink(timer):
led.toggle()
ledMachine.toggle()
timer.init(freq=2.5, mode=Timer.PERIODIC, callback=blink)