Check your arduino port with arduino-cli board list
and replace /dev/cu.usbmodem144101
with your port
arduino-cli board list
# or
ls -l /dev/*.* | grep usb
arduino-cli compile --profile mega
arduino-cli upload --port /dev/cu.usbmodem144101 --profile mega
arduino-cli compile --profile uno
arduino-cli upload --port /dev/cu.usbmodem144101 --profile uno
NOTE: All dependencies are installed automatically
Prerequisites:
arduino-cli core install arduino:avr
)arduino-cli lib install LiquidCrystal
)arduino-cli lib install Time
)NOTE: The board can be changed to any other board that is supported by the arduino-cli
arduino-cli compile -b arduino:avr:mega high-voltage-timer.ino
arduino-cli upload -p /dev/cu.usbmodem144101 -b arduino:avr:mega high-voltage-timer.ino
NOTE: The port can be changed to the port that the arduino is connected to (/dev/cu.usbmodem144101
is the port for
my arduino)