pimoroni / bme680-python

Python library for the BME680 gas, temperature, humidity and pressure sensor.
https://shop.pimoroni.com/products/bme680
MIT License
260 stars 93 forks source link

added check on constants.__dict__ for micropython support #18

Closed giampiero7 closed 5 years ago

giampiero7 commented 5 years ago

In micropython the attribute dict is not available. I added a check to skip the export in this case.

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 19


Files with Coverage Reduction New Missed Lines %
bme680/init.py 53 50.72%
<!-- Total: 53 -->
Totals Coverage Status
Change from base Build 18: 0.05%
Covered Lines: 356
Relevant Lines: 459

💛 - Coveralls
Gadgetoid commented 5 years ago

Thank you- I'm surprised there's a MicroPython board this will run on, but then I'm only accustomed to the limits of the micro:bit.

giampiero7 commented 5 years ago

I'm using it on Pycom, it runs with no issues. Best, Giampiero