Raspberry Pi PicoのLチカ

Raspberry Pi PicoのLチカです。IDEはなんでも良いです。Thonnyがおすすめですかね。コピーして貼り付けて、Raspberry Pi Pico本体に保存して、それから実行してください。LEDが点滅します。

from machine import Pin
from time import sleep

led = Pin('LED', Pin.OUT)

while True:
    led.on()
    sleep(1)
    led.off()
    sleep(1)
    

Comments

Copied title and URL