MPL115A2 (I2C) Pressure sensor interface
Dependents: MPL115A2Sample dataloger_for_modelrocket ARLISS2012_Hidaka
Diff: main.cpp
- Revision:
- 2:d77bd4340924
- Parent:
- 1:b1d4ab9b1e84
diff -r b1d4ab9b1e84 -r d77bd4340924 main.cpp --- a/main.cpp Tue Apr 26 11:30:35 2011 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -#include "mbed.h" -#include "MPL115A2.h" - -int main() { - MPL115A2 mpl115a2(p28, p27); - - while (1) { - printf("temperature = %3.1f degree, pressure = %d hPa\n", - mpl115a2.readTemperature(), mpl115a2.readPressure()); - wait(1); - } -} \ No newline at end of file