Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
robmarkcole committed Nov 9, 2018
1 parent d0518a0 commit 988be02
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@
Publish data from the bme680 sensor over MQTT using micropython. Makes use of:
* https://github.com/gkluoe/bme680/blob/master/library/bme680/i2c.py
* https://github.com/pimoroni/bme680

Am using in my leak sensor rig:
* https://www.hackster.io/robin-cole/micropython-leak-detector-with-adafruit-and-home-assistant-a2fa9e

Note that I init my wifi connection in a boot.py.
[On Wipy 3](https://docs.pycom.io/datasheets/development/wipy3#pinout), P9 = SDA and P10 = SCL.
Read sensor bytes using `machine` with:
```python
from machine import I2C
i2c = I2C(0) # using defauls P9 and P10
i2c.scan() # returns [119] which is hex 0x77
i2c.readfrom(0x77, 5) # read 5 bytes
```


<img src="https://github.com/robmarkcole/bme680-mqtt-micropython/blob/master/BME680-wipy.JPG">

0 comments on commit 988be02

Please sign in to comment.