Skip to content

Commit

Permalink
Add variables for board
Browse files Browse the repository at this point in the history
  • Loading branch information
spuder committed Nov 3, 2024
1 parent c59f4d5 commit 7d63b22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 2 additions & 0 deletions firmware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ run-usb-breadboard:
# you can then run the run-ota command which will preserve the wifi settings
# this is a workaround until eshome supports improv_serial on esp32s2
esphome \
-s board lolin_s2_mini \
-s variant esp32s2 \
-s rfid1_miso_pin "GPIO39" \
-s rfid1_clk_pin "GPIO36" \
-s rfid1_mosi_pin "GPIO35" \
Expand Down
10 changes: 3 additions & 7 deletions firmware/config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
substitutions:
name: openspool
rfid1_spi_interface: "spi" #any on Breadboard
rfid1_clk_pin: "GPIO36" #39 on Breadboard version
rfid1_miso_pin: "GPIO37"
rfid1_mosi_pin: "GPIO35"
rfid1_ss_pin: "GPIO34" #33 on Breadboard version
board: lolin_s2_mini

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

esp32:
board: lolin_s2_mini
variant: esp32s2
board: ${board}
#variant: ${variant}
framework:
type: esp-idf

Expand Down

0 comments on commit 7d63b22

Please sign in to comment.