Siddharth Dhingra
/
SCP1000_Hello
SCP1000 example program. Displays Temperature and Pressure.
main.cpp
- Committer:
- sdhingra
- Date:
- 2014-11-06
- Revision:
- 0:5f19ae84ce9f
File content as of revision 0:5f19ae84ce9f:
#include "mbed.h" #include "SCP1000.h" Serial pc(USBTX, USBRX); SCP1000 scp1000(p5,p6,p7,p8); int main() { pc.printf("The pressure is %d Pa and the temperature is %f C", scp1000.readPressure(), scp1000.readTemperature()); return(0); }