mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
SPI and I2C for BMP390 and BMP380 (#6652)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
16
tests/components/bmp3xx_spi/common.yaml
Normal file
16
tests/components/bmp3xx_spi/common.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
spi:
|
||||
- id: spi_bmp3xx
|
||||
clk_pin: ${clk_pin}
|
||||
mosi_pin: ${mosi_pin}
|
||||
miso_pin: ${miso_pin}
|
||||
|
||||
sensor:
|
||||
- platform: bmp3xx_spi
|
||||
spi_id: spi_bmp3xx
|
||||
cs_pin: ${cs_pin}
|
||||
temperature:
|
||||
name: BMP Temperature
|
||||
oversampling: 16x
|
||||
pressure:
|
||||
name: BMP Pressure
|
||||
iir_filter: 2X
|
7
tests/components/bmp3xx_spi/test.esp32-c3-idf.yaml
Normal file
7
tests/components/bmp3xx_spi/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
cs_pin: GPIO8
|
||||
|
||||
<<: !include common.yaml
|
7
tests/components/bmp3xx_spi/test.esp32-c3.yaml
Normal file
7
tests/components/bmp3xx_spi/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
cs_pin: GPIO8
|
||||
|
||||
<<: !include common.yaml
|
7
tests/components/bmp3xx_spi/test.esp32-idf.yaml
Normal file
7
tests/components/bmp3xx_spi/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
miso_pin: GPIO15
|
||||
cs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
7
tests/components/bmp3xx_spi/test.esp32.yaml
Normal file
7
tests/components/bmp3xx_spi/test.esp32.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO16
|
||||
mosi_pin: GPIO17
|
||||
miso_pin: GPIO15
|
||||
cs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
7
tests/components/bmp3xx_spi/test.esp8266.yaml
Normal file
7
tests/components/bmp3xx_spi/test.esp8266.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO14
|
||||
mosi_pin: GPIO13
|
||||
miso_pin: GPIO12
|
||||
cs_pin: GPIO15
|
||||
|
||||
<<: !include common.yaml
|
7
tests/components/bmp3xx_spi/test.rp2040.yaml
Normal file
7
tests/components/bmp3xx_spi/test.rp2040.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
clk_pin: GPIO2
|
||||
mosi_pin: GPIO3
|
||||
miso_pin: GPIO4
|
||||
cs_pin: GPIO5
|
||||
|
||||
<<: !include common.yaml
|
Reference in New Issue
Block a user