/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/ /\*! @file Adafruit\_MPL3115A2.cpp @author K.Townsend (Adafruit Industries) @license BSD (see license.txt) Example for the MPL3115A2 barometric pressure sensor This is a library for the Adafruit MPL3115A2 breakout ----> https://www.adafruit.com/products/1893 Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit! @section HISTORY v1.0 - First release \*/ /\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/
if (!baro.begin()) { Serial.println("Could not find sensor. Check wiring."); while(1); }
// use to set sea level pressure for current location // this is needed for accurate altitude measurement // STD SLP = 1013.26 hPa baro.setSeaPressure(1013.26); }