mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 00:18:11 +01:00
Add testcases for multiple SPI buses on ESP32 Arduino (#5457)
This commit is contained in:
parent
0b5a57ead4
commit
2513ede3ec
1 changed files with 11 additions and 0 deletions
|
@ -32,10 +32,15 @@ i2c:
|
||||||
scan: false
|
scan: false
|
||||||
|
|
||||||
spi:
|
spi:
|
||||||
|
- id: spi_id_1
|
||||||
clk_pin: GPIO21
|
clk_pin: GPIO21
|
||||||
mosi_pin: GPIO22
|
mosi_pin: GPIO22
|
||||||
miso_pin: GPIO23
|
miso_pin: GPIO23
|
||||||
interface: hardware
|
interface: hardware
|
||||||
|
- id: spi_id_2
|
||||||
|
clk_pin: GPIO32
|
||||||
|
mosi_pin: GPIO33
|
||||||
|
interface: hardware
|
||||||
|
|
||||||
uart:
|
uart:
|
||||||
- id: uart115200
|
- id: uart115200
|
||||||
|
@ -92,6 +97,7 @@ sx1509:
|
||||||
address: 0x3E
|
address: 0x3E
|
||||||
|
|
||||||
mcp3204:
|
mcp3204:
|
||||||
|
spi_id: spi_id_1
|
||||||
cs_pin: GPIO23
|
cs_pin: GPIO23
|
||||||
|
|
||||||
dac7678:
|
dac7678:
|
||||||
|
@ -495,6 +501,7 @@ display:
|
||||||
update_interval: 16ms
|
update_interval: 16ms
|
||||||
|
|
||||||
- platform: waveshare_epaper
|
- platform: waveshare_epaper
|
||||||
|
spi_id: spi_id_1
|
||||||
cs_pin: GPIO23
|
cs_pin: GPIO23
|
||||||
dc_pin: GPIO23
|
dc_pin: GPIO23
|
||||||
busy_pin: GPIO23
|
busy_pin: GPIO23
|
||||||
|
@ -504,6 +511,7 @@ display:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- platform: waveshare_epaper
|
- platform: waveshare_epaper
|
||||||
|
spi_id: spi_id_1
|
||||||
cs_pin: GPIO23
|
cs_pin: GPIO23
|
||||||
dc_pin: GPIO23
|
dc_pin: GPIO23
|
||||||
busy_pin: GPIO23
|
busy_pin: GPIO23
|
||||||
|
@ -514,6 +522,7 @@ display:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- platform: waveshare_epaper
|
- platform: waveshare_epaper
|
||||||
|
spi_id: spi_id_1
|
||||||
cs_pin: GPIO23
|
cs_pin: GPIO23
|
||||||
dc_pin: GPIO23
|
dc_pin: GPIO23
|
||||||
busy_pin: GPIO23
|
busy_pin: GPIO23
|
||||||
|
@ -523,6 +532,7 @@ display:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- platform: waveshare_epaper
|
- platform: waveshare_epaper
|
||||||
|
spi_id: spi_id_1
|
||||||
cs_pin: GPIO23
|
cs_pin: GPIO23
|
||||||
dc_pin: GPIO23
|
dc_pin: GPIO23
|
||||||
busy_pin: GPIO23
|
busy_pin: GPIO23
|
||||||
|
@ -673,6 +683,7 @@ touchscreen:
|
||||||
|
|
||||||
- platform: xpt2046
|
- platform: xpt2046
|
||||||
id: xpt_touchscreen
|
id: xpt_touchscreen
|
||||||
|
spi_id: spi_id_2
|
||||||
cs_pin: 17
|
cs_pin: 17
|
||||||
interrupt_pin: 16
|
interrupt_pin: 16
|
||||||
display: inkplate_display
|
display: inkplate_display
|
||||||
|
|
Loading…
Reference in a new issue