-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPI instead of I2C? #27
Comments
As much as I hate to say it - since we only provide breakouts that use the i2c interface and this library is strongly i2c focussed - I'm afraid I can't support use over SPI. You can- however- throw up an additional i2c bus using Then you can initialise the BME680 library with your new i2c bus like so:
SPI support is something I would consider reviewing and merging a PR for, however, since I know many people using breakouts not manufactured by us use this library and may want this feature. |
Thanks for the answer. I think i'm gonna buy an i2c multiplexer und use this. |
This scenario happened to me too. I ended up using the TCA9548A I2C Multiplexer to get this accomplished. Worked like a charm. If you are quick pintch in a hurry you can use a GPIO to power the sensor (it requires really low current so a gpio pin set to high is enough) and just cycle them from high to low sequentially to get all measurements. |
Closed as answered :) |
I need 3 sensors, but there are unfortunately only 2 I2C addresses. So i have to use SPI instead of I2C. Is there a way to use the same library in SPI?
The text was updated successfully, but these errors were encountered: