Sketch uses 5028 bytes (15%) of program storage space. Maximum is 32256 bytes. Global variables use 400 bytes (19%) of dynamic memory, leaving 1648 bytes for local variables. Maximum is 2048 bytes.
Used library Version Path Wire1.0 /home/jie/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/Wire
Used platform Version Path arduino:avr 1.8.6 /home/jie/.arduino15/packages/arduino/hardware/avr/1.8.6
上传代码到开发板
如果 arduino-cli board list 的输出为:
1 2
Port Protocol Type Board Name FQBN Core /dev/ttyACM1 serialSerial Port (USB) Arduino Nano Every arduino:megaavr:nona4809 arduino:megaavr
查看开发板可用的 programmer:
1
arduino-cli board details --fqbn arduino:avr:uno
部分输出如:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Programmers: ID Name arduinoasisp Arduino as ISP arduinoasispatmega32u4 Arduino as ISP (ATmega32U4) arduinoisp ArduinoISP arduinoisporg ArduinoISP.org atmel_ice Atmel-ICE (AVR) avrisp AVR ISP avrispmkii AVRISP mkII buspirate BusPirate as ISP jtag3 Atmel JTAGICE3 (JTAG mode) jtag3isp Atmel JTAGICE3 (ISP mode) parallel Parallel Programmer stk500 Atmel STK500 development board usbGemma Arduino Gemma usbasp USBasp usbtinyisp USBtinyISP