以下配置可用于使用 AVRISP MKII 烧录 Arduino Uno:
platformio.ini
[env:uno]
platform = atmelavr
board = uno
framework = arduino
upload_protocol= custom
upload_port = usb
upload_flags =
-C
$PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
-p
$BOARD_MCU
-P
$UPLOAD_PORT
-c
avrispmkII
; -c stk500v2
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i如果这篇文章对您有帮助,请考虑请我喝杯咖啡或通过 PayPal 捐款,以支持 TechOverflow 上新文章的研究与发布