From 8242cb40a05201a7e4b22bcc8587a05db4101274 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 23 Jan 2024 05:31:42 +0300 Subject: added `make monitor` command --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) . -- cgit v1.2.3