Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit 247d1c6

Browse files
committed
update
1 parent adf99c6 commit 247d1c6

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

micropython_h3lis200dl/h3lis200dl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@
101101
class H3LIS200DL:
102102
"""Driver for the H3LIS200DL Sensor connected over I2C.
103103
The H3LIS200DL is a low-power high-performance 3-axis linear accelerometer
104-
105-
The H3LIS200DL has scales of ±100g/±200g and is capable of measuring
104+
105+
The H3LIS200DL has scales of ±100g/±200g and is capable of measuring
106106
accelerations with output data rates from 0.5 Hz to 1 kHz.
107107
108108
:param ~machine.I2C i2c: The I2C bus the H3LIS200DL is connected to.

micropython_h3lis200dl/i2c_helpers.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def __get__(
6969
obj,
7070
objtype=None,
7171
) -> int:
72-
7372
mem_value = obj._i2c.readfrom_mem(obj._address, self.register, self.lenght)
7473

7574
reg = 0
@@ -84,7 +83,6 @@ def __get__(
8483
return reg
8584

8685
def __set__(self, obj, value: int) -> None:
87-
8886
memory_value = obj._i2c.readfrom_mem(obj._address, self.register, self.lenght)
8987

9088
reg = 0
@@ -117,7 +115,6 @@ def __get__(
117115
obj,
118116
objtype=None,
119117
):
120-
121118
if self.lenght <= 2:
122119
value = struct.unpack(
123120
self.format,

0 commit comments

Comments
 (0)