|
33 | 33 |
|
34 | 34 | **Hardware:**
|
35 | 35 |
|
| 36 | +* `LPS35HW Breakout <https://www.adafruit.com/products/4258>`_ |
| 37 | +
|
36 | 38 | **Software and Dependencies:**
|
37 | 39 | * Adafruit CircuitPython firmware for the supported boards:
|
38 | 40 | https://github.com/adafruit/circuitpython/releases
|
@@ -85,29 +87,29 @@ class DataRate: # pylint: disable=too-few-public-methods
|
85 | 87 | +===========================+=========================+
|
86 | 88 | | ``DataRate.ONE_SHOT`` | One shot mode |
|
87 | 89 | +---------------------------+-------------------------+
|
88 |
| - | ``DataRate.RATE_1_hz`` | 1 hz | |
| 90 | + | ``DataRate.RATE_1_HZ`` | 1 hz | |
89 | 91 | +---------------------------+-------------------------+
|
90 |
| - | ``DataRate.RATE_10_hz`` | 10 hz (Default) | |
| 92 | + | ``DataRate.RATE_10_HZ`` | 10 hz (Default) | |
91 | 93 | +---------------------------+-------------------------+
|
92 |
| - | ``DataRate.RATE_25_hz`` | 25 hz | |
| 94 | + | ``DataRate.RATE_25_HZ`` | 25 hz | |
93 | 95 | +---------------------------+-------------------------+
|
94 |
| - | ``DataRate.RATE_50_hz`` | 50 hz | |
| 96 | + | ``DataRate.RATE_50_HZ`` | 50 hz | |
95 | 97 | +---------------------------+-------------------------+
|
96 |
| - | ``DataRate.RATE_75_hz`` | 75 hz | |
| 98 | + | ``DataRate.RATE_75_HZ`` | 75 hz | |
97 | 99 | +---------------------------+-------------------------+
|
98 | 100 |
|
99 | 101 | """
|
100 | 102 | 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) |
106 | 108 |
|
107 | 109 | class LPS35HW: # pylint: disable=too-many-instance-attributes
|
108 | 110 | """Driver for the ST LPS35HW MEMS pressure sensor
|
109 | 111 |
|
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. |
111 | 113 | :param address: The I2C device address for the sensor. Default is ``0x5d`` but will accept
|
112 | 114 | ``0x5c`` when the ``SDO`` pin is connected to Ground.
|
113 | 115 |
|
@@ -162,7 +164,7 @@ def __init__(self, i2c_bus, address=0x5d):
|
162 | 164 | self.reset()
|
163 | 165 |
|
164 | 166 | # 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; |
166 | 168 |
|
167 | 169 | self._block_updates = True
|
168 | 170 | self._interrupt_latch = True
|
|
0 commit comments