This repository was archived by the owner on Dec 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 101101class 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.
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments