Update docs, add upload target to makefile.

This commit is contained in:
2020-05-13 04:46:20 +00:00
parent 0f54743fa2
commit fcbf9a046a
3 changed files with 15 additions and 9 deletions

View File

@ -1,2 +1,12 @@
BOARD_NAME ?= esp8266:esp8266:huzzah
UPLOAD_PORT ?= /dev/ttyUSB0
.PHONY: all build upload
all: build
build:
arduino-cli compile -b esp8266:esp8266:huzzah smartswitch.ino
arduino-cli compile -b ${BOARD_NAME} smartswitch.ino
upload:
arduino-cli upload -b ${BOARD_NAME} -p ${UPLOAD_PORT} smartswitch.ino