Welcome in the forum, Joseph!
For the I2C access to the BME280 there is an address bit on pin 5 which allows you to select between two devices on the same bus. Could be easier than your low-side switch.
I am currently trying to make the c library work with Psoc 4 i2c component. We already ported the library and use it with a stm32 microprocessor from ST. There we had more flexibility in implementing the i2c read and write functions to assign them to the bme280 structure inside the library, but the Psoc 4 functions does not use the concept of register alongside with the address. If I will succeed with this I will let you know, firstly I need to make the i2c functions work properly.
1 of 1 people found this helpfulHello Joseph,We manage to work with the sensor. I will attach our solution. I do not know why I cannot paste the text in the attachment .txt file here.Best regards!
Dear Marian-Emanuel Ionascu.
Thank for your code for BME280 - I am going to try it tonight. Maybe you have moved a bit forward and already have full implementation of BME280 taking in account all calibration values? I am building Actuator for ventilation windows and gone use BME280 in conjunction with IAQ core P to acquire all necessary measurements. Initially build everything around ESP8266 but due to IAQ sensor requirement for I2C clock stretching (not supported by ESP8266) decided to assign measurement tasks to CY8CKIT. By the way BME280 module works without any issues on ESP8266 (nodemcu lua).
Please update your achievements with BME280.
would you mind sharing your psoc creator project file for this?
thank you in advance