Arduino Make is a repository template for building large scale arduino projects. It attempts to homogenize best practices for C/C++ development in accordance with Google Style C++ and DOxygen while meeting the requirements for arduino-cli
runtimes. The environment is controlled by an easy to use Makefile with a built-in linter to enforce good coding habits and consistent and flexible arduino project design.
-
Preinstallations and environment configuration Clone the repository:
git clone https://github.com/cSDes1gn/arduino-make.git
Install the
arduino-cli
tool. Be sure to set theINSTALLATION_PATH
to a location that is within your system path. (You can check your system path usingenv | grep PATH
)curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=INSTALLATION_PATH sh
For more installation information visit the arduino-cli docs
-
Populate
.env
file with environment configurables. For more information about environment configuration see the docs. -
Setup and configure
arduino-cli
andcpplint
, run:make setup
-
Test the demo project by connecting your arduino board through USB. These make targets compile and flash the demo to your arduino board.
make compile; make flash
-
Open the serial monitor and observe the output from the serial port using
make monitor
-
Clean the project environment using
make clean
Runmake
for more information on make targets
This repository includes .vscode
c_cpp_properties.json
and .code-workspace
files for vscode environment setup. For more information on these configuration files see the docs.