I’m having troubles using wemos d1 mini with OLED Shield and BME280.
My yaml:
#i2c bus definitions
i2c:
- id: bus_a
sda: D1
scl: D2
scan: True - id: bus_b
sda: D3
scl: D4
scan: True
Example configuration entry
sensor:
- platform: bme280
i2c_id: bus_b
temperature:
id: temp
name: “BME280 Temperature”
oversampling: 16x
pressure:
id: pres
name: “BME280 Pressure”
humidity:
id: hum
name: “BME280 Humidity”
address: 0x76
update_interval: 60s
Example configuration entry
display:
- platform: ssd1306_i2c
i2c_id: bus_a
model: “SSD1306 64x48”
address: 0x3C
lambda: |-
it.printf(0, 5, id(font1), “Temp : %.1fc”, id(temp).state);
it.printf(0, 20, id(font1), "Humi : %.1f ", id(hum).state);
it.printf(0, 35, id(font1), "Pres : %.1f ", id(pres).state);
The trouble I’m having is that it would seem it only detects the last i2c bus. If I use the config up here, Then the bme280 works but not the screen. If I do this:
i2c:
- id: bus_b
sda: D3
scl: D4
scan: True - id: bus_a
sda: D1
scl: D2
scan: True
Then the screen will work but not the BME280…