MPL3115A2 Altitude and temperature reading using polling technique

Document created by Tomas Vaverka Employee on Feb 20, 2020Last modified by Tomas Vaverka Employee on Feb 20, 2020
Version 2Show Document
  • View in full screen mode

/*************************************************************************************************************
* This simple example code has been written for the FRDM-KL25Z + FRDM-FXS-MULT2-B
* boards and illustrates:
*
* 1. How to read both the altitude (pressure) and temperature data from the MPL3115A2

* using the polling technique.
*
* 2. How to convert the raw data to real values in meters (Pascals) and degrees Celsius.
*************************************************************************************************************/

 

Outcomes