DuinoMiteMegaAn Senior Member
 Joined: 17/11/2011 Location: AustraliaPosts: 231 |
| Posted: 03:35am 08 Mar 2012 |
|
|
|
I have 3 bytes that I am re-combining from an I2C read operation from the Bosch BMP085.
The below formula is needed to find the raw pressure. Can this be done in MMBasic?
Any help is appreciated.
ref (y = 0-3)
x = (byte1<<16 + byte2<< 8 + byte3) >> (8-y) <-------- Formula |