Closed jamesshannon closed 5 years ago
Oddly, it works when I deconstruct the code and run individual commands:
>>> _write_register_byte(_BME280_REGISTER_CTRL_MEAS, 0xFE)
>>> _read_register(_BME280_REGISTER_STATUS, 1)
bytearray(b'\x00')
Might be a timing issue, but I tried putting both lines into a single function and running them together and that worked.
Hi @jamesshannon, I can't reproduced this on Raspi rev 1, raspian-stretch, Adafruit-Blinka (1.2.8), adafruit-circuitpython-busdevice (2.2.11) If it is a race, condition, my Pi may be too slow. Could you please confirm this is still a problem ?
No. I haven't run into this in a while. Don't remember if it fixed itself or what.
I'm getting a remote I/O error when _read_temperature() is called.
The initialization (which checks the chipid) works, and I'm able to do a few other things (like read the coefficients). Also, similar code has worked from the same environment with your Si7021 breakout.