Skip to content

Instantly share code, notes, and snippets.

@stonehippo
Created January 21, 2022 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stonehippo/b2b3e31ff88b06b1a8671a552a447932 to your computer and use it in GitHub Desktop.
Save stonehippo/b2b3e31ff88b06b1a8671a552a447932 to your computer and use it in GitHub Desktop.
Arduino CLI shorthand aliases
# Arduino CLI shortcuts
# Compile and upload; add the USB port to the end or it will error
# Arduino Uno
alias ac-uno="arduino-cli compile -b arduino:avr:uno -u -p"
# Arduino Pro or Pro Mini, at 3.3v/8MHz or 5v/16Mhz
alias ac-pro-8mhz="arduino-cli compile -b arduino:avr:pro:cpu=8MHzatmega328 -u -p"
alias ac-pro-16mhz="arduino-cli compile -b arduino:avr:pro -u -p"
# Arduino Diecimila
alias ac-diec="arduino-cli compile -b arduino:avr:diecimila -u -p"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment