from machine import Pin
import time
led = Pin(25, Pin.OUT) # Pico LED
#led = Pin("LED", Pin.OUT) # Pico W LED
try:
while True:
led.value(1) # LED を ON
time.sleep(0.5) # 0.5秒スリープ
led.value(0) # LED を OFF
time.sleep(0.5) # 0.5秒スリープ
except:
pass
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme