Skip to content

Slow refresh rate #65

@joezilla86

Description

@joezilla86

Between 3.4.13 and 3.5 release, the rate at which the sensor returns readings has drastically slowed. I can get a new reading every ~0.3 seconds (the sensor can return readings much faster than this, but they only update about every 0.3 seconds). Whereas when I change to 3.5.0 the readings only update about every 4 seconds.

I tried the following minimal code using a QtPY ESP32-S2 and a BME688 and the only thing I'm changing is the version of the BME680 library loaded on the board.

import board
import busio
import time
from adafruit_bme680 import Adafruit_BME680_I2C as BME688

i2c = busio.I2C(board.SCL1, board.SDA1)
sensor = BME688(i2c)

while True:
    print('Temp: {} C \tPres: {} hPa\t{}'.format(sensor.temperature, sensor.pressure, time.monotonic()))
    #time.sleep(.25)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions