Skip to content

Commit 7d63b22

Browse files
committed
Add variables for board
1 parent c59f4d5 commit 7d63b22

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

firmware/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ run-usb-breadboard:
5252
# you can then run the run-ota command which will preserve the wifi settings
5353
# this is a workaround until eshome supports improv_serial on esp32s2
5454
esphome \
55+
-s board lolin_s2_mini \
56+
-s variant esp32s2 \
5557
-s rfid1_miso_pin "GPIO39" \
5658
-s rfid1_clk_pin "GPIO36" \
5759
-s rfid1_mosi_pin "GPIO35" \

firmware/config.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
substitutions:
22
name: openspool
3-
rfid1_spi_interface: "spi" #any on Breadboard
4-
rfid1_clk_pin: "GPIO36" #39 on Breadboard version
5-
rfid1_miso_pin: "GPIO37"
6-
rfid1_mosi_pin: "GPIO35"
7-
rfid1_ss_pin: "GPIO34" #33 on Breadboard version
3+
board: lolin_s2_mini
84

95
esphome:
106
name: ${name} #Don't use underscore '_' in name https://esphome.io/guides/faq.html#why-shouldn-t-i-use-underscores-in-my-device-name
@@ -30,8 +26,8 @@ esphome:
3026
- script.execute: set_led_off
3127

3228
esp32:
33-
board: lolin_s2_mini
34-
variant: esp32s2
29+
board: ${board}
30+
#variant: ${variant}
3531
framework:
3632
type: esp-idf
3733

0 commit comments

Comments
 (0)