SCP1000 example program. Displays Temperature and Pressure.

Dependencies:   SCP1000 mbed

Committer:
sdhingra
Date:
Thu Nov 06 17:28:08 2014 +0000
Revision:
0:5f19ae84ce9f
Update files.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sdhingra 0:5f19ae84ce9f 1 #include "mbed.h"
sdhingra 0:5f19ae84ce9f 2 #include "SCP1000.h"
sdhingra 0:5f19ae84ce9f 3
sdhingra 0:5f19ae84ce9f 4 Serial pc(USBTX, USBRX);
sdhingra 0:5f19ae84ce9f 5 SCP1000 scp1000(p5,p6,p7,p8);
sdhingra 0:5f19ae84ce9f 6
sdhingra 0:5f19ae84ce9f 7 int main() {
sdhingra 0:5f19ae84ce9f 8 pc.printf("The pressure is %d Pa and the temperature is %f C", scp1000.readPressure(), scp1000.readTemperature());
sdhingra 0:5f19ae84ce9f 9 return(0);
sdhingra 0:5f19ae84ce9f 10 }