adafruit_lps28
CircuitPython driver for the LPS28 (LPS28DFW) Pressure Sensor
Author(s): Liz Clark
Hardware:
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://circuitpython.org/downloads
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
Adafruit’s Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
Driver for the LPS28 pressure sensor.
Initialize the LPS28 sensor.
i2c_bus – The I2C bus instance.
address – The I2C address of the sensor (default: 0x5C).
Enable automatic reference pressure update
Enable auto-zeroing of pressure readings
Number of pressure and temperature samples to average
value – Desired averaging factor.
ValueError – If the provided value is not a valid averaging setting.
Output data rate in Hz.
value – Desired data rate in Hz.
ValueError – If the provided value is not a valid data rate.
Check if data is ready to be read.
True if data is ready
Enable data-ready interrupt
Data-ready interrupt as a pulse
Enable FIFO full interrupt
FIFO mode
‘BYPASS’, ‘FIFO’, ‘CONTINUOUS’, ‘CONTINUOUS_TO_FIFO’, ‘BYPASS_TO_CONTINUOUS’, ‘CONTINUOUS_TO_BYPASS’
The current FIFO mode as a string.
ValueError – If an invalid FIFO mode is given.
Enable FIFO overrun interrupt
Reads and removes the next FIFO pressure sample in hPa.
Pressure value in hPa.
Check if FIFO watermark level is reached.
True if FIFO watermark level is reached, False otherwise.
FIFO status flags (full, watermark, overrun)
Stop FIFO when watermark level is reached
Number of unread FIFO samples (0-127)
FIFO watermark threshold (0-127 samples)
Enable FIFO watermark interrupt
Enable full-scale mode (False = 1260 hPa, True = 4060 hPa)
Disable interrupt pin internal pull-down
Interrupt source flags
Configure the interrupt pin settings.
polarity – True for active-high, False for active-low.
open_drain – True for open-drain output, False for push-pull.
Enable latching of interrupt events
Enable low-pass filter with ODR/9 cutoff
Pressure in hPa.
Enable high-pressure threshold interrupt
Enable low-pressure threshold interrupt
Pressure offset adjustment (16-bit)
Enable pressure threshold interrupt
Reboot the memory content of the sensor.
Reference pressure value (16-bit)
Perform a software reset of the sensor.
Reset automatic reference pressure
Reset auto-zeroing function
Enable I2C SDA pull-up
Sensor status flags (pressure/temp ready, overruns)
Temperature in °C.
Pressure threshold for interrupt generation (16-bit value)
Start a one-shot pressure measurement
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4