File tree Expand file tree Collapse file tree 7 files changed +54
-7
lines changed Expand file tree Collapse file tree 7 files changed +54
-7
lines changed Original file line number Diff line number Diff line change 1+ # # Variables
2+
3+ ARDUINO_CLI ?= arduino-cli
4+ BUILD_PATH ?= $(PWD ) /.build
5+
6+ # # Local options
7+
8+ ifneq ($(V ) ,)
9+ VERBOSE = -v
10+ else
11+ VERBOSE =
12+ endif
13+
14+ # # Makefile options
15+
16+ ifeq ($(BOARD_FQDN ) ,)
17+ $(error missing BOARD_FQDN)
18+ endif
19+
20+ ifeq ($(SERIAL_PORT ) ,)
21+ $(error missing SERIAL_PORT)
22+ endif
23+
24+ # # Build rules
25+
26+ .PHONY : all
27+ all : compile
28+
29+ .PHONY : compile
30+ compile :
31+ $(ARDUINO_CLI ) compile $(VERBOSE ) -b $(BOARD_FQDN ) --build-path $(BUILD_PATH )
32+
33+ .PHONY : upload
34+ upload :
35+ $(ARDUINO_CLI ) upload $(VERBOSE ) -b $(BOARD_FQDN ) -p $(SERIAL_PORT ) --input-dir $(BUILD_PATH )
36+
37+ .PHONY : clean
38+ clean :
39+ rm -rf $(BUILD_PATH )
40+
41+ # # Aliases
42+
43+ .PHONY : serial
44+ serial : monitor
45+
46+ .PHONY : flash
47+ flash : upload
Original file line number Diff line number Diff line change 1- include ../arduino-config-esp .mk
1+ include ../esp01 .mk
Original file line number Diff line number Diff line change 1- ARDUINO_LIBS =
2- MONITOR_BAUDRATE = 74880
3- include ../arduino-config-esp.mk
1+ include ../esp01.mk
File renamed without changes.
Original file line number Diff line number Diff line change 1- ARDUINO_LIBS = ESP8266WiFi Ticker DHT
2- MONITOR_BAUDRATE = 115200
3- include ../arduino-config-esp.mk
1+ include ../esp01.mk
File renamed without changes.
Original file line number Diff line number Diff line change 1+ BOARD_FQDN = esp8266:esp8266:generic:baud=921600
2+ SERIAL_PORT ?= /dev/ttyUSB1
3+
4+ include ../arduino-cli.mk
You can’t perform that action at this time.
0 commit comments