1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

SPI schema now uses typed_schema with type key (#6353)

This commit is contained in:
Clyde Stubbs
2024-03-12 13:50:24 +11:00
committed by GitHub
parent 51ab15c40e
commit 782d662c20
3 changed files with 39 additions and 18 deletions

View File

@@ -0,0 +1,23 @@
spi:
- id: spi_id_1
type: single
clk_pin:
number: GPIO7
allow_other_uses: false
mosi_pin: GPIO6
interface: hardware
- id: quad_spi
type: quad
clk_pin: 47
interface: spi3
data_pins:
- number: 40
allow_other_uses: false
- 41
- 42
- 43
- id: spi_id_3
clk_pin: 8
mosi_pin: 9
interface: any

View File

@@ -23,20 +23,12 @@ psram:
spi:
- id: spi_id_1
type: single
clk_pin:
number: GPIO7
allow_other_uses: false
mosi_pin: GPIO6
interface: any
- id: quad_spi
clk_pin: 47
data_pins:
- number: 40
allow_other_uses: false
- 41
- 42
- 43
interface: hardware
spi_device:
id: spidev
data_rate: 2MHz