Library to interface the SCP1000 temperature and pressure sensor.
Dependents: SCP1000_Example ku-make_sensor ku-make_sensor201302 SCP1000_Example ... more
Diff: SCP1000.h
- Revision:
- 2:fe7826024fd1
- Parent:
- 1:5fcf1fe4a161
- Child:
- 3:4d8b8ca54451
diff -r 5fcf1fe4a161 -r fe7826024fd1 SCP1000.h --- a/SCP1000.h Tue Oct 05 04:10:55 2010 +0000 +++ b/SCP1000.h Tue Oct 05 04:17:56 2010 +0000 @@ -24,11 +24,11 @@ ~SCP1000() { /* empty */ }; + ///Reads the pressure /** - * Read the pressure in pascals. - * - * @return The pressure in pascals. - */ + Reads the pressure from the sensor + @return Pressure in pascals. + */ unsigned long readPressure() { unsigned long pressure_msb = read_register(PRESSURE); pressure_msb &= 0x07;