adafruit_lps2x
Library for the ST LPS2X family of pressure sensors
Author(s): Bryan Siepert
Hardware:
Adafruit LPS25 Pressure SensorLPS25HB Breakout (Product ID: 4530)
Adafruit LPS22 Pressure Sensor LPS22HB Breakout (Product ID: 4633)
Software and Dependencies:
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
Adafruit’s Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
Options for data_rate
Rate
Description
Rate.LPS25_SHUTDOWN
Setting data_rate
to Rate.LPS25_SHUTDOWN
stops measurements from being taken
Rate.LPS25_RATE_1_HZ
1 Hz
Rate.LPS25_RATE_7_HZ
7 Hz
Rate.LPS25_RATE_12_5_HZ
12.5 Hz
Rate.LPS25_RATE_25_HZ
25 Hz
Rate.LPS22_SHUTDOWN
Setting data_rate
to Rate.LPS22_SHUTDOWN
stops measurements from being taken
Rate.LPS22_RATE_1_HZ
1 Hz
Rate.LPS22_RATE_10_HZ
10 Hz
Rate.LPS22_RATE_25_HZ
25 Hz
Rate.LPS22_RATE_50_HZ
50 Hz
Rate.LPS22_RATE_75_HZ
75 Hz
Base class ST LPS2x family of pressure sensors
Configure the sensor with the default settings. For use after calling reset()
Reset the sensor, restoring all configuration registers to their defaults
The current pressure measurement in hPa
The current temperature measurement in degrees Celsius
The rate at which the sensor measures pressure
and temperature
. data_rate
should be set to one of the values of adafruit_lps2x.Rate
Library for the ST LPS25 pressure sensors
Controls the power down state of the sensor. Setting to False
will shut the sensor down
Configure the sensor with the default settings. For use after calling LPS2X.reset()
Library for the ST LPS22 pressure sensors
i2c_bus (I2C) – The I2C bus the LPS22HB is connected to.
address – The I2C device address. Default is 0x5d
but will accept 0x5c
when the SDO
pin is connected to Ground.
Configure the sensor with the default settings. For use after calling LPS2X.reset()
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