Newer
Older
D5_IoT_PG / Makefile
@mannzyuusan mannzyuusan on 25 Apr 452 bytes first commet
SERIAL := $(shell arduino-cli board list | grep USB | xargs -n 1 | head -n 1 )
ser:
	@echo $(SERIAL)

prepare: build/M5StickCPlus_FactoryTest2022.ino.bin 

build/M5StickCPlus_FactoryTest2022.ino.bin: M5StickCPlus_FactoryTest2022.ino
	arduino-cli compile --fqbn esp32:esp32:m5stick-c --export-binaries --output-dir build M5StickCPlus_FactoryTest2022.ino

up: prepare
	arduino-cli upload --fqbn esp32:esp32:m5stick-c -p $(SERIAL) --input-dir build