参考:
これらの記事を参考に、つまづきながらLチカできた。この知見をまとめ、以下にWinsows11を用いてRaspberry Pi Picoにmicropythonを書き込みLチカする方法をなるべく簡潔に具体的に書いた。
以下Raspberry Pi PicoをPicoと略す
from machine import Pin
import utime
led = Pin(25, Pin.OUT)
while True:
led.value(1)
utime.sleep(0.1)
led.value(0)
utime.sleep(0.1)
(「import machine」にすると「NameError: name ‘Pin’ isn’t defined」エラーが出てしまう)
[https://stackoverflow.com/questions/61365990/receiving-nameerror-name-pin-isnt-defined-when-running-python-code-on-an-e]