Has anyone been able to interface the BME280 temp, humidity and pressure sensor to PBP?
I've been messing with it for two days. Getting temperature to read correctly (at least I think it is) took a couple of hours but the compensation formulas for the pressure, let alone humidity is about as convoluted as they get and I'm really struggling. They do provide code in the datasheet but no real explaination or formulas.

Take a look at the fixed point version of the compensation code in the datasheet and tell me if you can figure out what it's doing :-) Like I said, I managed to get temperature working (at least it seems to be, don't know what happens when temp goes negative...) but just look at the code for pressure and humidity, they're using bloody 64bit signed variables, leftshift 47 times, rightshift 33 times...jeeez :-)

Of course there is Arduino code available but it pretty much copies the datasheet.

Anyone already done it? Anyone interested?

/Henrik.

EDIT:Link to datasheet