adafruit / Adafruit_CCS811

Arduino driver for CCS811 digital gas sensor
MIT License
65 stars 36 forks source link

Convert to BusIO #30

Closed caternuson closed 3 years ago

caternuson commented 3 years ago

For #29. Converts to BusIO with no change to existing library API except added a TwoWire parameter to begin(), but sets a default so should be backwards compatible.

Tested on Qt PY with CCS811_test example sketch from library. Screenshot from 2021-08-10 10-59-35

caternuson commented 3 years ago

@ladyada This hasn't been merged yet. I can also remove chunkificaiton as part of this PR to sync with busio?

ladyada commented 3 years ago

yah i think best to do that just so you can retest real fast

caternuson commented 3 years ago

Still works, CCS811_test example on Qt Py. I don't think this library actually used chunks anyway. There aren't any bigger-than-buffer xfers.

Screenshot from 2021-08-11 08-41-08