projet capteur connecté ST/SE
Dependencies: HP206C mbed HMC5883L DHT DS1820
altitude.cpp
- Committer:
- SBACCARI
- Date:
- 2018-10-09
- Revision:
- 67:3ccbc6a532eb
- Parent:
- 66:cbfcea17a3c5
- Child:
- 70:1e2e21c377ed
File content as of revision 67:3ccbc6a532eb:
#include "altitude.h" #include "config.h" long pression(HP20x_dev* barometre) { long P = 0; barometre->reset(); //pc.printf("SB : available? => %d \r\n", barometre.isAvailable() ); // DEBUG : show sensor status wait(2); P = barometre->ReadPressure(); //pc.printf("P = %ul \r\n", P); // DEBUG : print pressure value wait(3); return P; }