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

Closed gigapod closed 1 month ago

gigapod commented 1 year ago

Board

SparkFun qwiic BME 280

Notes

Driver

sfe-SparkFro commented 1 year 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 1 year 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.

malcolm-sparkfun commented 1 month ago

Looks good. Tested installing from mip with mpremote mip install github:sparkfun/Qwiic_BME280_Py and it appears to have properly installed the files for this package as well as the qwiic_i2c_py dependency package.