Example program using the SCP1000 library.

Dependencies:   SCP1000 mbed

Dependents:   SCP1000_Example

Committer:
kadams6
Date:
Wed Oct 20 17:51:36 2010 +0000
Revision:
1:6fb7e6fcbb68
Parent:
0:fd585132c191
Got the printf flags backwards

Who changed what in which revision?

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