Example program using the SCP1000 library.

Dependencies:   SCP1000 mbed

Dependents:   SCP1000_Example

main.cpp

Committer:
kadams6
Date:
2010-10-20
Revision:
1:6fb7e6fcbb68
Parent:
0:fd585132c191

File content as of revision 1:6fb7e6fcbb68:

#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);
}