projet capteur connecté ST/SE
Dependencies: HP206C mbed HMC5883L DHT DS1820
Diff: altitude.cpp
- Revision:
- 67:3ccbc6a532eb
- Parent:
- 66:cbfcea17a3c5
- Child:
- 70:1e2e21c377ed
--- a/altitude.cpp Tue Oct 09 14:43:03 2018 +0000 +++ b/altitude.cpp Tue Oct 09 15:14:35 2018 +0000 @@ -1,13 +1,13 @@ #include "altitude.h" #include "config.h" -long pression(HP20x_dev barometre) +long pression(HP20x_dev* barometre) { long P = 0; - barometre.reset(); + barometre->reset(); //pc.printf("SB : available? => %d \r\n", barometre.isAvailable() ); // DEBUG : show sensor status wait(2); - P = barometre.ReadPressure(); + P = barometre->ReadPressure(); //pc.printf("P = %ul \r\n", P); // DEBUG : print pressure value wait(3);