Llibrary for the WiGo MPL3115A2, I2C Precision Altimeter sensor.
Dependents: KL25Z_Batt_Test WIGO_MPL3115A2 Multi-Sensor SPACEmk2 ... more
30/05/2013 Added and tested the data acquisition using Interrupt. Added code for Altimeter trigger Interrupt but not yet tested.
Very basic library. Under development. Need to add in order: 1. IRQ configuration. 2. FIFO mode configuration.
Diff: MPL3115A2.h
- Revision:
- 10:82ac06669316
- Parent:
- 9:75a5960adf5c
- Child:
- 11:a5ce3ee460b6
diff -r 75a5960adf5c -r 82ac06669316 MPL3115A2.h --- a/MPL3115A2.h Sun Sep 22 11:17:28 2013 +0000 +++ b/MPL3115A2.h Tue Sep 24 20:22:25 2013 +0000 @@ -146,6 +146,14 @@ unsigned int getAllData( float *f); /** + * Get the altimeter or pressure and temperature values and the delta values + * + * @param array of float f[2], array of float d[2] + * @returns 0 no data available, 1 for data available + */ + unsigned int getAllData( float *f, float *d); + + /** * Get the altimeter or pressure and temperature captured maximum value * * @param array of float f[2]