33
33
34
34
**Hardware:**
35
35
36
- * ` LPS25HB Breakout < https://www.adafruit.com/products/45XX>`_
36
+ * LPS25HB Breakout https://www.adafruit.com/products/4530
37
37
38
38
**Software and Dependencies:**
39
39
* Adafruit CircuitPython firmware for the supported boards:
@@ -105,20 +105,31 @@ def is_valid(cls, value):
105
105
class Rate (CV ):
106
106
"""Options for ``data_rate``
107
107
108
- +-----------------------+------------------------------------------------------------------+
109
- | Rate | Description |
110
- +-----------------------+------------------------------------------------------------------+
111
- | ``Rate.ONE_SHOT`` | Setting `data_rate` to ``Rate.ONE_SHOT`` takes a single pressure |
112
- | | and temperature measurement |
113
- +-----------------------+------------------------------------------------------------------+
114
- | ``Rate.RATE_1_HZ`` | 1 Hz |
115
- +-----------------------+------------------------------------------------------------------+
116
- | ``Rate.RATE_7_HZ`` | 7 Hz |
117
- +-----------------------+------------------------------------------------------------------+
118
- | ``Rate.RATE_12_5_HZ`` | 12.5 Hz |
119
- +-----------------------+------------------------------------------------------------------+
120
- | ``Rate.RATE_25_HZ`` | 25 Hz |
121
- +-----------------------+------------------------------------------------------------------+
108
+ +-----------------------------+------------------------------------------------+
109
+ | Rate | Description |
110
+ +-----------------------------+------------------------------------------------+
111
+ | ``Rate.LSP25_SHUTDOWN`` | Setting `data_rate` to ``Rate.LSP25_SHUTDOWN`` |
112
+ | | stops measurements from being taken |
113
+ +-----------------------------+------------------------------------------------+
114
+ | ``Rate.LSP25_RATE_1_HZ`` | 1 Hz |
115
+ +-----------------------------+------------------------------------------------+
116
+ | ``Rate.LSP25_RATE_7_HZ`` | 7 Hz |
117
+ +-----------------------------+------------------------------------------------+
118
+ | ``Rate.LSP25_RATE_12_5_HZ`` | 12.5 Hz |
119
+ +-----------------------------+------------------------------------------------+
120
+ | ``Rate.LSP25_RATE_25_HZ`` | 25 Hz |
121
+ +-----------------------------+------------------------------------------------+
122
+ | ``Rate.LSP22_SHUTDOWN`` | Setting `data_rate` to ``Rate.LSP22_SHUTDOWN`` |
123
+ | | stops measurements from being taken |
124
+ +-----------------------------+------------------------------------------------+
125
+ | ``Rate.LSP22_RATE_1_HZ`` | 1 Hz |
126
+ +-----------------------------+------------------------------------------------+
127
+ | ``Rate.LSP22_RATE_10_HZ`` | 10 Hz |
128
+ +-----------------------------+------------------------------------------------+
129
+ | ``Rate.LSP22_RATE_25_HZ`` | 25 Hz |
130
+ +-----------------------------+------------------------------------------------+
131
+ | ``Rate.LSP22_RATE_50_HZ`` | 50 Hz |
132
+ +-----------------------------+------------------------------------------------+
122
133
123
134
"""
124
135
@@ -182,10 +193,7 @@ def temperature(self):
182
193
@property
183
194
def data_rate (self ):
184
195
"""The rate at which the sensor measures ``pressure`` and ``temperature``. ``data_rate``
185
- shouldbe set to one of the values of ``adafruit_lps2x.DataRate``. Note that setting
186
- ``data_rate``to ``Rate.ONE_SHOT`` places the sensor into a low-power shutdown mode where
187
- measurements toupdate ``pressure`` and ``temperature`` are only taken when
188
- ``take_measurement`` is called."""
196
+ shouldbe set to one of the values of ``adafruit_lps2x.Rate``."""
189
197
return self ._data_rate
190
198
191
199
@data_rate .setter
@@ -195,9 +203,6 @@ def data_rate(self, value):
195
203
196
204
self ._data_rate = value
197
205
198
- # void setPresThreshold(uint16_t hPa_delta);
199
- # bool getEvent(sensors_event_t *pressure, sensors_event_t *temp);
200
-
201
206
202
207
class LPS25 (LPS2X ):
203
208
"""Library for the ST LPS25 pressure sensors
0 commit comments