Skip to content

Commit 8a54779

Browse files
author
dorranh
committed
Update Makefile
1 parent ebd28cd commit 8a54779

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
venv

Makefile

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
1-
all: build
1+
all: deps build
2+
3+
deps:
4+
# esp32 depends on Python + pyserial :(
5+
python3 -m venv venv
6+
./venv/bin/pip install --upgrade pip
7+
./venv/bin/pip install pyserial
8+
9+
# Update package index
10+
arduino-cli core update-index
11+
# Install feather esp32 core
12+
arduino-cli core install esp32:esp32
13+
# Other library dependencies
14+
arduino-cli lib install Button2@1.6.1
15+
arduino-cli lib install Ramp@0.5.0
16+
arduino-cli lib install ESP32Servo@0.9.0
217

318
build:
4-
echo "TODO"
19+
# TODO: This is hard coded to build for featheresp32
20+
# Might want to parameterize this in the future if additional
21+
# boards are supported.
22+
PATH="$$PWD/venv/bin:$$PATH" arduino-cli compile -b esp32:esp32:featheresp32 .

0 commit comments

Comments
 (0)