sparkfun / pdp-qwiic-micro-python

Repo to manage the logistics of micro python qwiic driver development
0 stars 0 forks source link

BME 280 Qwiic Driver #1

Open gigapod opened 11 months ago

gigapod commented 11 months ago

Board

SparkFun qwiic BME 280

Notes

Driver

sfe-SparkFro commented 11 months ago

Tested examples on XRP, the driver appears to work fine.

Examples are numbered 1,4,5. I believe this is intended to match the Arduino examples, but it's confusing IMO.

Got a ValueError: math domain error on line 577 of the library. Just before, the pressure was reported as -21234. Running the example a second time worked fine. I'm guessing the library needs to wait a bit before reading from the sensor (data registers likely have garbage default values).

sfe-SparkFro commented 11 months ago

Tested on XBee as well, not working due to math of all things not being included in the XBee MicroPython port. Waiting to hear back about whether math will be included in a future MPY port.