VoronDesign / Voron-Hardware

Cool Hardware designed by the Voron Design group
GNU General Public License v3.0
880 stars 356 forks source link

Connecting a BME280 i2c sensor to Klipper Expander board #172

Closed gargamel778 closed 2 years ago

gargamel778 commented 2 years ago

Hi, I'm trying to connect a BME280 I2C sensor to the Klipper Expander board using the 4-pin I2C header. On another board, I confirmed that the sensor works correctly and responds to address (0x77). I'm confident that I've wired it up correctly to the header. For testing, I added the following to my printer.cfg -

[temperature_sensor chamber]
sensor_type: BME280
i2c_address: 119
i2c_mcu: expander
i2c_bus: i2c1a

The result is that klipper shutdown immediately upon restart with the following error - MCU 'expander' shutdown: i2c_read not supported on stm32

Am I doing something wrong or is this not possible at all?

gargamel778 commented 2 years ago

Seems to be resolved in Klipper commit ec4ecd7 - stm32f0: implement i2c_read endpoint