We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c58f7ba commit 0b771a0Copy full SHA for 0b771a0
examples/Makefile
@@ -0,0 +1,23 @@
1
+
2
+DEST := $(if $(DEST),$(DEST),gate)
3
+BOARD := "esp8266:esp8266:generic:FlashSize=2M"
4
5
6
+LOCAL_C_SRCS ?= $(wildcard *.c)
7
+LOCAL_INO_SRCS ?= $(wildcard *.ino)
8
+LOCAL_SRCS = $(LOCAL_C_SRCS) $(LOCAL_INO_SRCS)
9
10
+all: compile
11
12
+compile:
13
+ docker run -ti -v $$(pwd):/build damonpetta/arduino-cli-esp8266 compile -b $(BOARD) $(LOCAL_SRCS) -o $(DEST).bin
14
15
+usb:
16
+ esptool.py -p /dev/ttyUSB0 --baud 115200 \
17
+ write_flash --flash_mode dout 0x0000 $(DEST).bin
18
19
+curl:
20
+ curl -v -F "image=@$(DEST).bin" $(DEST)/update
21
22
+clean:
23
+ rm *.bin *.elf
examples/README.md
@@ -0,0 +1,4 @@
+### Examples
+* Makefile - example Makefile to call docker image to build
0 commit comments