Closed titusece closed 6 years ago
Hello,
Edited the following file for I2C address. https://github.com/pimoroni/bme680/tree/master/library/bme680/__init__.py
def __init__(self, i2c_addr=I2C_ADDR_PRIMARY, i2c_device=None):
TO
def __init__(self, i2c_addr=I2C_ADDR_SECONDARY, i2c_device=None):
Where, I2C_ADDR_PRIMARY => 0x76 I2C_ADDR_SECONDARY=> 0x77
Are you using our add-on board, or a generic bme680 breakout/your own hardware?
I am have the same issue but this didn't fix it for me. My I2C address is also 0x77 and im using a Adafruit bme680 chip.
Traceback (most recent call last):
File "read-all.py", line 6, in <module>
sensor = bme680.BME680()
File "build/bdist.linux-armv7l/egg/bme680/__init__.py", line 25, in __init__
File "build/bdist.linux-armv7l/egg/bme680/__init__.py", line 285, in _get_regs
IOError: [Errno 121] Remote I/O error
Instead of modifying the library you can also just pass bme680.BME680(i2c_addr=bme680.I2C_ADDR_SECONDARY)
to the constructor of the sensor class.
Hello,
I am getting the below error when I run the examples. Installed the libraries based on the README.
Seems my slave address is 0x77, but python code is using 0x76, thats why I am getting this issue ?
BTW, this one works, its C code. https://github.com/twartzek/bme680-raspberry
But I would like to use python.
Thanks for the help.