Michael Walker / Mbed 2 deprecated scp1000_HelloWorld
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 
00005 Serial pc(USBTX, USBRX);
00006 SCP1000 Pressure(p5,p6,p7,p8);
00007 
00008 
00009 int main() {
00010     pc.printf("The pressure is %f Pa and the temperature is %f C", Pressure.read(), Pressure.readTemperature());
00011     return(0);
00012 }