Getting arduino-cli installed

I often like doing things from the cli, so arduino-cli as a supplement to arduino seemed a really good idea, but go apparently uses magic .. It's bothers me a bit, but that's the way things are in the modern world.

So installing it...

$ go get -u github.com/arduino/arduino-cli
$

Of course, no news is good news, so no output is good output :)

And now I can get it to do stuff for me, probably because I allready have a lot of arduino setup.

Checking the setup.

$ arduino-cli config dump

I changed a few things in mine, moving the sketchpad away from the default location and to where I actually have my Arduino repository.

Making sure I've got the right module for the chipset I'm working with.

$ arduino-cli core install esp8266:esp8266
Platform esp8266:esp8266@2.5.2 already installed

Compiling for it

$ arduino-cli compile -b esp8266:esp8266:d1_mini esp8266_fastled

Uploading it

$ arduino-cli upload -b esp8266:esp8266:d1_mini -p /dev/ttyUSB1 esp8266_fastled

Perhaps, a bit of go magic isn't all that bad :-)


Comments

comments powered by Disqus