diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-01-23 05:31:42 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-01-23 05:31:42 +0300 |
commit | 8242cb40a05201a7e4b22bcc8587a05db4101274 (patch) | |
tree | e48c3b6a3842142953289e4b3820aa6158cf39b0 | |
parent | 59fcc50b3932b7c6f389451bfa63178208c84255 (diff) | |
download | shmotbox-8242cb40a05201a7e4b22bcc8587a05db4101274.tar.gz |
added `make monitor` command
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -23,7 +23,7 @@ install-deps: # Especially Control-Surface apparently needs a v2 core. # arduino-builder -compile -hardware /usr/local/arduino/hardware -tools /usr/local/arduino/hardware/tools/ -tools /usr/local/arduino/tools-builder/ -core-api-version 10618 -libraries ~/Arduino/libraries -fqbn arduino:avr:leonardo -prefs "compiler.cpp.extra_flags=-DARDUINO_API_VERSION=1" -verbose shmotbox.ino compile: - $(ARDUINO_CLI) compile --fqbn $(FQBN) . + $(ARDUINO_CLI) compile --clean --fqbn $(FQBN) . # You may have to run this as root, but this will require installing # the arduino:avr core into the root account as well. @@ -31,3 +31,6 @@ compile: # On FreeBSD you have to be in the dialer group. upload: $(ARDUINO_CLI) upload -p $(DEVICE) --fqbn $(FQBN) . + +monitor: + $(ARDUINO_CLI) monitor -p $(DEVICE) --fqbn $(FQBN) . |