mirror of
https://github.com/esphome/esphome.git
synced 2026-08-22 22:26:21 +00:00
SPI ethernet chips always initialized their own SPI host, so they could not coexist with other peripherals on the same physical pins. Boards like the M5Stack CoreS3 put the LCD, SD slot, and expansion bus on one multi-drop SPI bus, so attaching an ethernet base there was impossible. With spi_id set, the ethernet component skips spi_bus_initialize() and adds its device to the referenced hardware spi bus instead; the pins and host come from that bus. Without spi_id, behavior is unchanged.
17 lines
230 B
YAML
17 lines
230 B
YAML
esphome:
|
|
name: test
|
|
|
|
esp32:
|
|
board: esp32dev
|
|
|
|
ethernet:
|
|
id: eth_component
|
|
type: W5500
|
|
clk_pin: GPIO18
|
|
mosi_pin: GPIO23
|
|
miso_pin: GPIO19
|
|
cs_pin: GPIO5
|
|
interrupt_pin: GPIO36
|
|
reset_pin: GPIO22
|
|
clock_speed: 20MHz
|