This commit is contained in:
xyj 2023-12-26 17:03:11 +08:00
parent 43b6b5da47
commit 258dfa3793
1 changed files with 16 additions and 0 deletions

16
test_led.py Normal file
View File

@ -0,0 +1,16 @@
import time
import board
import digitalio
PIN = board.D18
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)