Kenneth Adams
/
SCP1000_Example
Example program using the SCP1000 library.
Revision 0:fd585132c191, committed 2010-10-05
- Comitter:
- kadams6
- Date:
- Tue Oct 05 04:29:50 2010 +0000
- Child:
- 1:6fb7e6fcbb68
- Commit message:
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SCP1000.lib Tue Oct 05 04:29:50 2010 +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 Tue Oct 05 04:29:50 2010 +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 %f Pa and the temperature is %u 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 Tue Oct 05 04:29:50 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e