mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +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:
15
tests/components/bmp3xx_i2c/common.yaml
Normal file
15
tests/components/bmp3xx_i2c/common.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
i2c:
|
||||
- id: i2c_bmp3xx
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: bmp3xx_i2c
|
||||
i2c_id: i2c_bmp3xx
|
||||
address: 0x77
|
||||
temperature:
|
||||
name: BMP Temperature
|
||||
oversampling: 16x
|
||||
pressure:
|
||||
name: BMP Pressure
|
||||
iir_filter: 2X
|
5
tests/components/bmp3xx_i2c/test.esp32-c3-idf.yaml
Normal file
5
tests/components/bmp3xx_i2c/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/bmp3xx_i2c/test.esp32-c3.yaml
Normal file
5
tests/components/bmp3xx_i2c/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/bmp3xx_i2c/test.esp32-idf.yaml
Normal file
5
tests/components/bmp3xx_i2c/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/bmp3xx_i2c/test.esp32.yaml
Normal file
5
tests/components/bmp3xx_i2c/test.esp32.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/bmp3xx_i2c/test.esp8266.yaml
Normal file
5
tests/components/bmp3xx_i2c/test.esp8266.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/bmp3xx_i2c/test.rp2040.yaml
Normal file
5
tests/components/bmp3xx_i2c/test.rp2040.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
Reference in New Issue
Block a user