mirror of
https://github.com/cmur2/python-bme680.git
synced 2024-11-14 08:56:20 +01:00
Python library for the BME680 gas, temperature, humidity and pressure sensor.
35b26a1529
When running the `examples/read-all.py` script I was seeing a crash because the value passed to `write_i2c_block_data` wasn't being converted to an int: ``` File "/home/pi/tmp/bme680/library/bme680/__init__.py", line 281, in _set_regs self._i2c.write_i2c_block_data(self.i2c_addr, register, value) TypeError: Third argument must be a list of at least one, but not more than 32 integers ``` This commit ensures `set_gas_heater_temperature` converts the temperature to an int before it's passed to `self._set_regs`. |
||
---|---|---|
examples | ||
library | ||
packaging | ||
.gitignore | ||
README.md |
BME680
https://shop.pimoroni.com/products/bme680
The state-of-the-art BME680 breakout lets you measure temperature, pressure, humidity, and indoor air quality.
Installing
Manual install:
Library install for Python 3:
sudo pip3 install bme680
Library install for Python 2:
sudo pip2 install bme680
Development:
If you want to contribute, or like living on the edge of your seat by having the latest code, you should clone this repository, cd
to the library directory, and run:
sudo python3 setup.py install
(or sudo python setup.py install
whichever your primary Python environment may be)
In all cases you will have to enable the i2c bus.
Documentation & Support
- Guides and tutorials - https://learn.pimoroni.com/bme680
- Get help - http://forums.pimoroni.com/c/support