Skip to main content

Arduino

managers#

cli#

# macosbrew install arduino-cli
# linuxcurl -LO https://downloads.arduino.cc/arduino-cli/arduino-cli_latest_Linux_64bit.tar.gztar zxvf arduino-cli_latest_Linux_64bit.tar.gzsudo mv arduino-cli /usr/local/bin/
# alpinelinux# 依然会有 __strdup: symbol not found# 除非使用 glibc 否则无解apk add libc6-compat gcompat
arduino-cli config init
arduino-cli core update-indexarduino-cli core search
# 包含很多基础工具arduino-cli coree install arduino:avr
arduino-cli core update-index --additional-urls http://digistump.com/package_digistump_index.jsonarduino-cli core install digistump:avr --additional-urls http://digistump.com/package_digistump_index.json
# 允许操作 serialsudo adduser $USER dialout
arduino-cli board list
arduino-cli sketch new FirstSketchcd FirstSketch# arduino:avr:unoarduino-cli compile -b digistump:avr:digispark-tiny