diff --git a/test_led.py b/test_led.py new file mode 100644 index 0000000..6de77cb --- /dev/null +++ b/test_led.py @@ -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) \ No newline at end of file