Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/scottchiefbaker/arduino-makefile
- Owner: scottchiefbaker
- License: mit
- Created: 2019-01-29T19:42:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-11T04:19:05.000Z (12 months ago)
- Last Synced: 2023-11-11T05:25:01.432Z (12 months ago)
- Language: Makefile
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.