0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

電子工作メモ - オンボードLED

Last updated at Posted at 2024-03-21
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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?