Skip to content

Instantly share code, notes, and snippets.

@tjibbevanderlaan
Last active May 22, 2022 18:06
Show Gist options
  • Save tjibbevanderlaan/5e954d3d3e2a12f760115d327d4c057f to your computer and use it in GitHub Desktop.
Save tjibbevanderlaan/5e954d3d3e2a12f760115d327d4c057f to your computer and use it in GitHub Desktop.
Compile and upload Arduino UNO sketch with arduino-cli
# !/bin/bash
# upload_sketch helps to compile and upload
# an Arduino project to the Arduino Uno
# by using ./upload_sketch.sh <project_folder>
arduino-cli compile --fqbn arduino:avr:uno $1
arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment