Uses this project to allow for Makefile building. This requires the Arduino IDE to be installed, but once installed the user does not need to open it.
brew tap sudar/arduino-mk
brew install arduino-mk
python3 -m pip install pyserial
You may need to update the Makefile for your system, modify the necessary variables.
To build and check that the code compiles, run make
. To upload to the board, run make upload
.
NOTE: ensure the bluetooth module is NOT connected when uploading, otherwise it will fail. Nothing can be connected to the Tx/Rx pins.