me-no-dev / RasPiArduino

Arduino Framework for RaspberryPI
333 stars 75 forks source link

Tested with arduino-builder? #66

Open beriberikix opened 7 years ago

beriberikix commented 7 years ago

https://github.com/arduino/arduino-builder

Compiling without the IDE would be useful as well as provide the ability to use CI. It also might make it easier to compile directly on a raspberry pi.

Has anyone tested arduino-builder with this library?

beriberikix commented 7 years ago

With some hackery I was able to get it to work. I grabbed the latest release for arduino-builder on OSX (1.3.5) and ran this command:

./arduino-builder/arduino-builder -hardware hardware/ -tools hardware/RaspberryPi/piduino/tools/ -hardware ./arduino-builder/hardware/ -tools ./arduino-builder/tools/ -fqbn RaspberryPi:piduino:bplus -build-path /Users/me/documents/rpi/output Button/Button.ino

All flags are needed if you don't want to modify any of the files. I did have to move ctags to arduino-builder/tools/ctags/5.8-arduino11/ctags - not sure why.