Llibrary for the WiGo MPL3115A2, I2C Precision Altimeter sensor.
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.
--- a/MPL3115A2.cpp Tue Sep 24 20:22:25 2013 +0000 +++ b/MPL3115A2.cpp Fri Jul 10 14:58:19 2020 +0000 @@ -1,3 +1,22 @@ +/* MPL3115A2 I2C precision pressure sensor with altimetry Library +* +* @author: Clemente di Caprio +* @date: September 24, 2013 +* @license: Apache License, Version 2.0 +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + #include "MPL3115A2.h" #define REG_WHO_AM_I 0x0C // return 0xC4 by default