Circuitpython : #3 hellow world チュートリアル2
素材
ItsyBitsy M0 Express
Arch linux
For Arch linux
USBドライブ 自動マウント をインストール
↓
マウントされた CIRCUITPY を オープン
↓
is CIRCUITPY
/.Trashes
/.fseventsd
/.metadata_never_index
/README.txt
/System Volume Information
/Windows 7 Drivers
/boot_out.txt
/laugh.wav
/lib
/main.py
/rimshot.wav
↓
Install mu-editor (任意)
インストール Snaped
↓
sudo snap install mu-editor --classic
↓
Hello world 1
pc と circuitpython をコネクト
↓
mu-editor
↓
OK
↓
New
↓
CIRCUITPY/code.py
import board
import digitalio
import time
led = digitalio.DigitalInOut(board.D13)
led.direction = digitalio.Direction.OUTPUT
while True:
led.value = True
time.sleep(0.1)
led.value = False
time.sleep(0.5)
↓
Save
↓
#circuitpython #helloworld pic.twitter.com/8L1cRwq3vF
— フォロバ@prototype_create (@prototype_tec) March 13, 2021
↓
Hello world 2
CIRCUITPY/code.py
import board
import digitalio
import time
led = digitalio.DigitalInOut(board.D10)
led.direction = digitalio.Direction.OUTPUT
while True:
led.value = True
time.sleep(0.1)
led.value = False
time.sleep(0.5)
↓
Circuitpythonボード/10 → LEDアノード(+, 足が長い) [--|] LEDカソード(-、足が短い) → 470オーム抵抗 → Circuitpythonボード/[G,USB,5!]のどれか
↓
#circuitpython #helloworld 2 pic.twitter.com/jeOFiNW1LJ
— フォロバ@prototype_create (@prototype_tec) March 13, 2021
-
おすすめ
- Circuitpython : #2 hellow world チュートリアル
- Circuitpython : #1 アップデート インストール Circuitpython (ItsyBitsy M0 Express)
↓

最後までご覧いただきありがとうございました。参考になれば幸いです
↓
いつも助けてくださってありがとうございます
amazon ギフト券 投げ銭リンク
これからもお役に立てる情報を更新します。皆さんのお助けに飛び跳ねて喜びます。ありがとうございます。