![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
example code to display mpl1152a data on a jhd 162a 16x2 lcd display
Dependencies: mbed mpl115a2 BME280_SPI TextLCD
Diff: main.cpp
- Revision:
- 1:f198c37d9f5a
- Parent:
- 0:118187295473
- Child:
- 2:e1e9cca4d7e3
--- a/main.cpp Mon May 07 13:27:04 2012 +0000 +++ b/main.cpp Mon May 07 13:28:43 2012 +0000 @@ -3,7 +3,9 @@ I2C i2c(p9, p10); // sda, scl Serial pc(USBTX, USBRX); // tx, rx -MPL115A2 p_sensor(&i2c, &pc); + +// MPL115A2 p_sensor(&i2c, &pc); //DEBUG verion +MPL115A2 p_sensor(&i2c); int main() { @@ -11,10 +13,13 @@ while(1) { + p_sensor.ReadSensor(); pc.printf("Pressure = %f\n", p_sensor.GetPressure()); wait(1); pc.printf("Temperature = %f\n", p_sensor.GetTemperature()); wait(1); + + } }