mikeleslie
Active member
I have a Teensy 3.2 and a protoshield and I'm having an issue: When I use the MPL3115 the reads are very slow, either 958 or 969ms.
I've tried the other sensors and they run great, I even have attached a dotstar and it's all good, but the pressure sensor is slow.
I usually use the BMP085 which has no problem at 50x this rate.
I'm using the Adafruit_MPL3115A2 library. Any thoughts?
I've tried the other sensors and they run great, I even have attached a dotstar and it's all good, but the pressure sensor is slow.
I usually use the BMP085 which has no problem at 50x this rate.
I'm using the Adafruit_MPL3115A2 library. Any thoughts?
Code:
#include <SPI.h>
#include <Adafruit_MPL3115A2.h>
Adafruit_MPL3115A2 baro = Adafruit_MPL3115A2();
unsigned long time;
unsigned long oldtime;
void setup()
{
baro.begin();
}
void loop() {
float pascals = baro.getPressure();
Serial.print(pascals/3377); Serial.print(" Inches (Hg) Read Time is: ");
time=millis();
Serial.println(time-oldtime);
oldtime = time;
}