summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-01-23 05:31:42 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-01-23 05:31:42 +0300
commit8242cb40a05201a7e4b22bcc8587a05db4101274 (patch)
treee48c3b6a3842142953289e4b3820aa6158cf39b0
parent59fcc50b3932b7c6f389451bfa63178208c84255 (diff)
downloadshmotbox-8242cb40a05201a7e4b22bcc8587a05db4101274.tar.gz
added `make monitor` command
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 28c58e7..5643005 100644
--- a/Makefile
+++ b/Makefile
@@ -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) .