Last active
May 22, 2022 18:06
-
-
Save tjibbevanderlaan/5e954d3d3e2a12f760115d327d4c057f to your computer and use it in GitHub Desktop.
Compile and upload Arduino UNO sketch with arduino-cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/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