Newer
Older
M5StickCPlus_FactoryTest2022 / Makefile
@motoki miura motoki miura on 15 Feb 2024 452 bytes 2024
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