Supports pressure measurement in Pascals (Pa).
Assuming your device is called 'myPressure' in Project Designer then:-
// Read the sensor and store values
// Get the last read value
PRESSURE_TYPE val = myPressure.getPa();
// Print it out
cout << "Pressure:" << val;
Project Designer supports the following devices
- Bosch I2C pressure and temperature sensor capable of measuring 30000 Pa to 110000 Pa. Equivalent to 500m below sea level up to 9,000m above sea level.
- Motorola pressure sensor returning 45mV per kPa.