Example program using the SCP1000 library.

Dependencies:   SCP1000 mbed

Dependents:   SCP1000_Example

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "SCP1000.h"
00003 
00004 Serial pc(USBTX, USBRX);
00005 SCP1000 scp1000(p5,p6,p7,p8);
00006 
00007 int main() {
00008     pc.printf("The pressure is %d Pa and the temperature is %f C", scp1000.readPressure(), scp1000.readTemperature());
00009     return(0);
00010 }