Try wt32-eth01
This commit is contained in:
parent
5bd83cd18d
commit
7b95f6eba2
5 changed files with 26 additions and 6 deletions
6
esphome/devices/.gitignore
vendored
6
esphome/devices/.gitignore
vendored
|
@ -1 +1,5 @@
|
||||||
.esphome/
|
# Gitignore settings for ESPHome
|
||||||
|
# This is an example and may include too much for your use-case.
|
||||||
|
# You can modify this file to suit your needs.
|
||||||
|
/.esphome/
|
||||||
|
/secrets.yaml
|
||||||
|
|
5
esphome/devices/b27a0c.yaml
Normal file
5
esphome/devices/b27a0c.yaml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
substitutions:
|
||||||
|
macsuffix: b27a0c
|
||||||
|
|
||||||
|
<<: !include ../includes/wt32-eth01.yaml
|
||||||
|
<<: !include ../includes/base.yaml
|
|
@ -22,9 +22,6 @@ ota:
|
||||||
web_server:
|
web_server:
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
# https://esphome.io/components/captive_portal.html
|
|
||||||
captive_portal:
|
|
||||||
|
|
||||||
# https://esphome.io/components/time.html
|
# https://esphome.io/components/time.html
|
||||||
time:
|
time:
|
||||||
- platform: sntp
|
- platform: sntp
|
||||||
|
@ -37,5 +34,3 @@ text_sensor:
|
||||||
# https://esphome.io/components/text_sensor/version.html
|
# https://esphome.io/components/text_sensor/version.html
|
||||||
- platform: version
|
- platform: version
|
||||||
name: "${macsuffix}_version"
|
name: "${macsuffix}_version"
|
||||||
|
|
||||||
wifi: !include ../../private/esphome-wifi.yaml
|
|
|
@ -1,6 +1,9 @@
|
||||||
esp8266:
|
esp8266:
|
||||||
board: d1_mini
|
board: d1_mini
|
||||||
|
|
||||||
|
# https://esphome.io/components/captive_portal.html
|
||||||
|
captive_portal:
|
||||||
|
|
||||||
i2c:
|
i2c:
|
||||||
# default: sda: GPIO4
|
# default: sda: GPIO4
|
||||||
# default: scl: GPIO5
|
# default: scl: GPIO5
|
||||||
|
@ -23,3 +26,5 @@ output:
|
||||||
pin:
|
pin:
|
||||||
number: GPIO2
|
number: GPIO2
|
||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
|
wifi: !include ../../private/esphome-wifi.yaml
|
11
esphome/includes/wt32-eth01.yaml
Normal file
11
esphome/includes/wt32-eth01.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
esp32:
|
||||||
|
board: esp32dev
|
||||||
|
variant: esp32
|
||||||
|
|
||||||
|
ethernet:
|
||||||
|
type: LAN8720
|
||||||
|
mdc_pin: GPIO23
|
||||||
|
mdio_pin: GPIO18
|
||||||
|
clk_mode: GPIO0_IN
|
||||||
|
phy_addr: 1
|
||||||
|
power_pin: GPIO16
|
Loading…
Reference in a new issue