From 258dfa3793396ca63abe207f931da4888fb8dcf8 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Tue, 26 Dec 2023 17:03:11 +0800 Subject: [PATCH] update --- test_led.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test_led.py 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