Library to interface the SCP1000 temperature and pressure sensor.
Dependents: SCP1000_Example ku-make_sensor ku-make_sensor201302 SCP1000_Example ... more
Revision 1:5fcf1fe4a161, committed 2010-10-05
- Comitter:
- kadams6
- Date:
- Tue Oct 05 04:10:55 2010 +0000
- Parent:
- 0:0b8b5828e1a3
- Child:
- 2:fe7826024fd1
- Commit message:
Changed in this revision
SCP1000.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/SCP1000.h Tue Oct 05 04:07:01 2010 +0000 +++ b/SCP1000.h Tue Oct 05 04:10:55 2010 +0000 @@ -24,6 +24,11 @@ ~SCP1000() { /* empty */ }; + /** + * Read the pressure in pascals. + * + * @return The pressure in pascals. + */ unsigned long readPressure() { unsigned long pressure_msb = read_register(PRESSURE); pressure_msb &= 0x07;