Siddharth Dhingra
/
SCP1000_Hello
SCP1000 example program. Displays Temperature and Pressure.
Revision 0:5f19ae84ce9f, committed 2014-11-06
- Comitter:
- sdhingra
- Date:
- Thu Nov 06 17:28:08 2014 +0000
- Commit message:
- Update files.
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SCP1000.lib Thu Nov 06 17:28:08 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/kadams6/code/SCP1000/#47d6f205890b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Nov 06 17:28:08 2014 +0000 @@ -0,0 +1,10 @@ +#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); +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Nov 06 17:28:08 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/031413cf7a89 \ No newline at end of file