Projet_APP5
/
MS5607modele
TP ENSA Bus CAN
Diff: main.cpp
- Revision:
- 0:c06e6d1972d6
- Child:
- 1:db4df4165d4a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jul 03 08:58:18 2012 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" +//#include "MS5607SPI.h" +#include "MS5607I2C.h" + +int main() { + //MS5607SPI ms5607(p11, p12, p13, p10); + MS5607I2C ms5607(p9, p10, false); + + ms5607.printCoefficients(); + printf("Pressure = %.0f Pa\n", ms5607.getPressure()); + printf("Temperature = %.2f degC\n", ms5607.getTemperature()); + printf("Altitude = %.2f m\n", ms5607.getAltitude()); +} \ No newline at end of file