finitespace / BME280

Provides an Arduino library for reading and interpreting Bosch BME280 data over I2C, SPI or Sw SPI.
GNU General Public License v3.0
212 stars 105 forks source link

getStatus function #61

Open coelner opened 6 years ago

coelner commented 6 years ago

we should add a getStatus function where we select which bit is returned from the register.

finitespace commented 6 years ago

I don't understand what this means. You want a function to return the digs?

coelner commented 6 years ago

there is a status register at 0xF3 where bit 3 switch to '1' when a measurement is active. bit 0 shows only the copy of NVM data. (I'm not sure what conversion in this context means) bit 3 is more important to know about, because we could check if a measurement is running and wait until the bit flips to '0' and read then the measured values.

finitespace commented 6 years ago

This seems like it should be a private function that we check before returning a measurement. I wonder if we are returning the data before the filter buffer can be populated in #59.

finitespace commented 6 years ago

I have added this function in the status branch. I need to do some testing on it to make sure it makes a measurement correctly while checking the status bits (see ReadData() for changes to flow). This might also cause the changes to #59/#62 to be unnecessary.

finitespace commented 3 years ago

We need to update the branch and create a PR.