|
24 | 24 | # pylint: disable=too-many-instance-attributes |
25 | 25 |
|
26 | 26 | """ |
27 | | -`adafruit_bme680` - Adafruit BME680 - Temperature, Humidity, Pressure & Gas Sensor |
28 | | -=================================================================================== |
| 27 | +`adafruit_bme680` |
| 28 | +================================================================================ |
29 | 29 |
|
30 | | -CircuitPython driver from BME680 air quality sensor |
| 30 | +CircuitPython library for BME680 temperature, pressure and humidity sensor. |
31 | 31 |
|
32 | | -* Author(s): ladyada |
| 32 | +
|
| 33 | +* Author(s): Limor Fried |
| 34 | +
|
| 35 | +Implementation Notes |
| 36 | +-------------------- |
| 37 | +
|
| 38 | +**Hardware:** |
| 39 | +
|
| 40 | +* `Adafruit BME680 Temp, Humidity, Pressure and Gas Sensor <https://www.adafruit.com/product/3660>`_ |
| 41 | +
|
| 42 | +**Software and Dependencies:** |
| 43 | +
|
| 44 | +* Adafruit CircuitPython firmware for the supported boards: |
| 45 | + https://github.com/adafruit/circuitpython/releases |
| 46 | +* Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice |
33 | 47 | """ |
34 | 48 |
|
| 49 | + |
35 | 50 | import time |
36 | 51 | import math |
37 | 52 | from micropython import const |
|
40 | 55 | except ImportError: |
41 | 56 | import ustruct as struct |
42 | 57 |
|
| 58 | +__version__ = "0.0.0-auto.0" |
| 59 | +__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_BME680.git" |
| 60 | + |
| 61 | + |
43 | 62 | # I2C ADDRESS/BITS/SETTINGS |
44 | 63 | # ----------------------------------------------------------------------- |
45 | 64 | _BME680_CHIPID = const(0x61) |
@@ -315,6 +334,7 @@ def _read(self, register, length): |
315 | 334 | def _write(self, register, values): |
316 | 335 | raise NotImplementedError() |
317 | 336 |
|
| 337 | + |
318 | 338 | class Adafruit_BME680_I2C(Adafruit_BME680): |
319 | 339 | """Driver for I2C connected BME680. |
320 | 340 |
|
@@ -350,6 +370,7 @@ def _write(self, register, values): |
350 | 370 | if self._debug: |
351 | 371 | print("\t$%02X <= %s" % (values[0], [hex(i) for i in values[1:]])) |
352 | 372 |
|
| 373 | + |
353 | 374 | class Adafruit_BME680_SPI(Adafruit_BME680): |
354 | 375 | """Driver for SPI connected BME680. |
355 | 376 |
|
|
0 commit comments