Variable read times for BME280
Posted: Sun May 12, 2019 1:14 pm
I am using the bme280_float library. The bme280.altitude property sometimes takes different times to complete and it seems random (8 - 80mS). Anyone notice this before?
Output:
Code: Select all
while True:
a = ticks_ms()
print ((accelerometer.get_values()['AcX']) / 4096)
print (ticks_ms() - a)
print (bme280.altitude)
print (ticks_ms() - a)
print ("------------------")
sleep_ms(20)
Code: Select all
------------------
1.03906
4
-132.135
80
------------------
1.05933
4
-132.135
9
------------------
1.04175
4
-132.367
80
------------------
1.05347
4
-132.452
58
------------------