| Posted: 02:29pm 03 May 2026 |
|
|
|
G'day, Thats a very interesting sensor, thanks for pointing it out.
Should have added that this and the code posted previously work with signed integers.
With a bit of luck the following should be all that's needed to read the BMP581 (not sure about byte order, assumes low byte first)
Option Default Integer
I2C read addr,0,6,I2Cdat$
BMP_prss = str2bin(int32,chr$(0)+right$(I2Cdat$,3))/256 BMP_temp = str2bin(int32,chr$(0)+left$(I2Cdat$,3))/256
Regards, Lyle. |