We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0de419a commit 2b8dc36Copy full SHA for 2b8dc36
Makefile
@@ -2,14 +2,30 @@
2
clean:
3
rm -rf .pio
4
5
-.PHONY: pico-firmware
6
-pico-firmware: clean
+.PHONY: firmware
+firmware:
7
pio run -e pico
8
9
-.PHONY: pico-upload
10
-pico-upload: clean
+.PHONY: firmware-clean
+firmware-clean: clean
11
+ pio run -e pico
12
+
13
+.PHONY: upload
14
+upload:
15
pio run -e pico --target upload
16
17
+.PHONY: upload-clean
18
+upload-clean: clean
19
+ pio run -e pico --target upload
20
21
+PORTS := $(wildcard /dev/ttyACM*)
22
+.PHONY: upload-all
23
+upload-all:
24
+ @for port in $(PORTS); do \
25
+ echo "Uploading to $$port"; \
26
+ pio run -e pico --target upload; \
27
+ done
28
29
.PHONY: monitor
30
monitor:
31
pio device monitor
0 commit comments