2020-05-13 04:46:20 +00:00
|
|
|
BOARD_NAME ?= esp8266:esp8266:huzzah
|
|
|
|
UPLOAD_PORT ?= /dev/ttyUSB0
|
|
|
|
|
|
|
|
.PHONY: all build upload
|
|
|
|
|
|
|
|
all: build
|
|
|
|
|
2020-05-06 21:05:51 +00:00
|
|
|
build:
|
2020-05-13 04:46:20 +00:00
|
|
|
arduino-cli compile -b ${BOARD_NAME} smartswitch.ino
|
|
|
|
|
|
|
|
upload:
|
|
|
|
arduino-cli upload -b ${BOARD_NAME} -p ${UPLOAD_PORT} smartswitch.ino
|