lot_manager/test_led.py

16 lines
256 B
Python
Raw Normal View History

2023-12-26 17:03:11 +08:00
import time
import board
import digitalio
2023-12-26 17:03:24 +08:00
PIN = board.CS1
2023-12-26 17:03:11 +08:00
print("hello blinky!")
led = digitalio.DigitalInOut(PIN)
led.direction = digitalio.Direction.OUTPUT
while True:
led.value = True
time.sleep(0.5)
led.value = False
time.sleep(0.5)