參考資訊:
https://swf.com.tw/?p=1840
https://arduino.github.io/arduino-cli/0.31/installation/
步驟如下:
1. 連接Nano33BLE板子到PC
2. 執行如下命令
$ cd $ arduino-cli sketch new blink $ vim blink/blink.ino
void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, HIGH); delay(1000); digitalWrite(LED_BUILTIN, LOW); delay(1000); }
$ arduino-cli compile --fqbn arduino:mbed_nano:nano33ble blink $ arduino-cli board list Port Protocol Type Board Name FQBN Core /dev/ttyACM0 serial Serial Port (USB) Arduino Nano 33 BLE arduino:mbed_nano:nano33ble arduino:mbed_nano $ arduino-cli upload --port /dev/ttyACM0 --fqbn arduino:mbed_nano:nano33ble blink
完成