Skip to content

Commit b7d61bd

Browse files
committed
text fixes, product ID update
1 parent 46fa51f commit b7d61bd

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

adafruit_lps35hw.py

+14-12
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
3434
**Hardware:**
3535
36+
* `LPS35HW Breakout <https://www.adafruit.com/products/4258>`_
37+
3638
**Software and Dependencies:**
3739
* Adafruit CircuitPython firmware for the supported boards:
3840
https://github.com/adafruit/circuitpython/releases
@@ -85,29 +87,29 @@ class DataRate: # pylint: disable=too-few-public-methods
8587
+===========================+=========================+
8688
| ``DataRate.ONE_SHOT`` | One shot mode |
8789
+---------------------------+-------------------------+
88-
| ``DataRate.RATE_1_hz`` | 1 hz |
90+
| ``DataRate.RATE_1_HZ`` | 1 hz |
8991
+---------------------------+-------------------------+
90-
| ``DataRate.RATE_10_hz`` | 10 hz (Default) |
92+
| ``DataRate.RATE_10_HZ`` | 10 hz (Default) |
9193
+---------------------------+-------------------------+
92-
| ``DataRate.RATE_25_hz`` | 25 hz |
94+
| ``DataRate.RATE_25_HZ`` | 25 hz |
9395
+---------------------------+-------------------------+
94-
| ``DataRate.RATE_50_hz`` | 50 hz |
96+
| ``DataRate.RATE_50_HZ`` | 50 hz |
9597
+---------------------------+-------------------------+
96-
| ``DataRate.RATE_75_hz`` | 75 hz |
98+
| ``DataRate.RATE_75_HZ`` | 75 hz |
9799
+---------------------------+-------------------------+
98100
99101
"""
100102
ONE_SHOT = const(0x00)
101-
RATE_1_hz = const(0x01)
102-
RATE_10_hz = const(0x02)
103-
RATE_25_hz = const(0x03)
104-
RATE_50_hz = const(0x04)
105-
RATE_75_hz = const(0x05)
103+
RATE_1_HZ = const(0x01)
104+
RATE_10_HZ = const(0x02)
105+
RATE_25_HZ = const(0x03)
106+
RATE_50_HZ = const(0x04)
107+
RATE_75_HZ = const(0x05)
106108

107109
class LPS35HW: # pylint: disable=too-many-instance-attributes
108110
"""Driver for the ST LPS35HW MEMS pressure sensor
109111
110-
:param ~busio.I2C i2c_bus: The I2C bus the INA260 is connected to.
112+
:param ~busio.I2C i2c_bus: The I2C bus the LPS34HW is connected to.
111113
:param address: The I2C device address for the sensor. Default is ``0x5d`` but will accept
112114
``0x5c`` when the ``SDO`` pin is connected to Ground.
113115
@@ -162,7 +164,7 @@ def __init__(self, i2c_bus, address=0x5d):
162164
self.reset()
163165

164166
# set data_rate to put the sensor in continuous mode
165-
self.data_rate = DataRate.RATE_10_hz
167+
self.data_rate = DataRate.RATE_10_HZ;
166168

167169
self._block_updates = True
168170
self._interrupt_latch = True

0 commit comments

Comments
 (0)