Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/scottchiefbaker/arduino-makefile

Arduino Makefile to simplify compiling code at the CLI
https://github.com/scottchiefbaker/arduino-makefile

Last synced: 26 days ago
JSON representation

Arduino Makefile to simplify compiling code at the CLI

Awesome Lists containing this project

README

        

# Arduino Makefile

Arduino `Makefile` to simplify testing and uploading Arduino sketches from the command line.

## Requirements

[ArduinoCLI](https://arduino.github.io/arduino-cli/) installed and in your `$PATH`.

## Installation

Place this `Makefile` in your sketch directory.

## Configuration

`export BOARD=arduino:avr:uno && export PORT=/dev/ttyACM0`

or

Edit the `Makefile` itself and configure the `BOARD` and `PORT` options.

## Usage

1. Verify code compiles: `make`
2. Upload to board: `make upload`
3. Open serial monitor: `make monitor`

## Troubleshooting

Verify your code compiles and uploads via the ArduinoIDE. Next verify that it works with the ArduinoCLI. If it does not work with the vanilla `arduino-cli` it will not work with this `Makefile`.