Skip to content

scottchiefbaker/Arduino-Makefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino Makefile

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

Requirements

ArduinoCLI 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.

About

Arduino Makefile to simplify compiling code at the CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published