
Particle 命令列介面
|
69
目前,Particle 開發板支援來自於 Arduino 生態系統的諸多程式庫,但 Particle 板子並
非完全相容於 Arduino,因此你無法(尚不能)使用 Arduino IDE 來進行開發,而且
Particle 產品的體積尺寸不同於一般 Arduino 開發板(如 Uno),較為相近於 Arduino
Nano。
Particle 工具鏈裡的東西,大都基於 Node.js,接下來,讓我們看看如何操作這些開發
工具。
Particle 命令列介面
首先,使用指令 npm 安裝 Particle 的命令列介面,如下:
$ npm install -g particle-cli
安裝完成後,就可以透過 USB 線存取你的 Particle 板子:
$ particle
Welcome to the Particle Command line utility!
Version 1.9.1
https://github.com/spark/particle-cli
Usage: particle <command_name> <arguments>
Common Commands:
setup, list, call, get, device, identify, flash, subscribe
compile, monitor, login, logout, help
Less Common Commands:
token, binary, cloud, config, ...