Commit graph

26 commits

Author SHA1 Message Date
dherrada
dd954e8531 Ran black, updated to pylint 2.x 2020-03-16 15:01:43 -04:00
Limor "Ladyada" Fried
61fddde5a4
Merge pull request #18 from markpatterson27/upstream-issue-12
fix gas heater duration
2020-01-26 22:38:12 -05:00
Taylor Denouden
9211f42be4
Fix filter_size setter bug
self._filter was incorrectly being set with the value of _BME680_FILTERSIZES at the index `size` instead of the index of that size in the sizes list.
2019-11-21 21:17:36 -05:00
Kattni Rembor
df45c8470a Add version info, update cookie info 2019-09-23 12:46:10 -04:00
Mark Patterson
967e11c6a2 pylint fix. removed spaces. 2019-07-25 23:06:39 +01:00
Mark Patterson
76d5700822 fix gas heater duration 2019-07-25 19:01:54 +01:00
Jeff Raber
0d25996200 values parameter for _write() must be a list 2019-03-13 20:59:49 -05:00
Jeff Raber
aa97a7a5a6 Change SPI memory page as needed when reading/writing through SPI
In SPI mode, we must change the memory page depending on which register is
  being read/written.

Renamed const _BME680_REG_STATUS to _BME680_REG_MEAS_STATUS to more closely
  match the name in the datasheet.
2019-03-13 01:52:39 -05:00
Jeff Raber
e71564208f Improve SPI class, mirror the i2c class init and debug
Added the debug init parameter and copied the debug functionality
  from the i2c class
Added the refresh_rate initi parameter
Improved the SPI class docstring
2019-03-12 22:35:28 -05:00
Jeff Raber
0dad9a2a6c Fix-up i2c_device import to make pylint happy 2019-03-12 08:12:39 -05:00
Jeff Raber
2b9a219fa0 Implement SPI interface
Mostly copied from the BME280 python library.
2019-03-12 08:11:27 -05:00
Scott Shawcroft
10b6f918d9
Added space for pylint 2018-11-29 15:01:47 -08:00
robert-hh
4a5daf0bb5
adafruit_bme680.py: Fix compensation of pressure values
Compared the ot reference code, one expression in the lengthy calculation was split in two lines. 
Since a previous interim value was used in the expression twice and replaced by the first 
part of the split expression, the overall result was different to the reference code. The resulting
pressure was not that different, 10 hPa at 1000hPa absolute value, but clearly outside of the
spec with 1hPa absolute pressure error.
2018-11-26 07:52:37 +01:00
ladyada
2d716298de be exact about length of byte array matching what we're unpacking (CPython cares!) 2018-08-12 00:30:32 -04:00
Scott Shawcroft
8f7905315c Use enumerate. 2018-03-15 17:11:51 -07:00
Scott Shawcroft
7c1af7b657 Fix temperature readings and speed things up.
* The default internal attribute values for oversampling were
  incorrect because they needed to be the register values, not the
  human friendly ones.
* Reduce the delay after reset.
* Reduce the read delay by polling the new data bit.
* Introduce refresh_rate setting which allows for returning cached
  values when the properties are accessed quickly.
* I2C writes do not auto-increment so reset the register address
  for every value.

Fixes #5
2018-03-15 11:52:10 -07:00
sommersoft
46b72707eb pylint fix; removed large debug printout...seems leftover from Arduino lib 2018-02-24 10:00:31 -06:00
sommersoft
aaa757e37a pylint flagged the updated attributes; matched them in __init__ to their names in functions; needs to be tested 2018-02-23 22:56:37 -06:00
sommersoft
b043cf5694 updated doc strings 2018-02-23 21:54:12 -06:00
ladyada
4061b4dc10 manual merge 2017-12-09 16:32:02 -05:00
Tony DiCola
a6b03ff53c Ensure gas property updates reading state. 2017-11-14 14:31:32 -08:00
ladyada
eac1ffd950 rename fix 2017-11-12 13:56:37 -05:00
mrmcwethy
9370df0c4b changed read_into to readinto 2017-11-08 13:55:36 -08:00
Scott Shawcroft
f92fa6c144 Fix up the docs. 2017-10-31 10:57:23 -07:00
ladyada
67b17142fc its slow...but it works! you *must* mpy this as its massive 2017-10-29 00:24:19 -04:00
ladyada
33d2992522 init - temp/pressure/humidity working 2017-10-28 23:23:50 -04:00