Skip to content

Commit 84bb940

Browse files
committed
black
1 parent 96cbf64 commit 84bb940

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

adafruit_lsm6ds/__init__.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ class LSM6DS: # pylint: disable=too-many-instance-attributes
163163

164164
"""Driver for the LSM6DSOX 6-axis accelerometer and gyroscope.
165165
166-
:param ~busio.I2C i2c_bus: The I2C bus the LSM6DSOX is connected to.
167-
:param address: The I2C slave address of the sensor
166+
:param ~busio.I2C i2c_bus: The I2C bus the LSM6DSOX is connected to.
167+
:param address: The I2C slave address of the sensor
168168
169169
"""
170170

@@ -175,13 +175,12 @@ class LSM6DS: # pylint: disable=too-many-instance-attributes
175175
_raw_accel_data = Struct(_LSM6DS_OUTX_L_A, "<hhh")
176176
_raw_gyro_data = Struct(_LSM6DS_OUTX_L_G, "<hhh")
177177
_raw_temp_data = Struct(_LSM6DS_OUT_TEMP_L, "<bb")
178-
178+
179179
# RWBits:
180180

181181
_accel_range = RWBits(2, _LSM6DS_CTRL1_XL, 2)
182182
_accel_data_rate = RWBits(4, _LSM6DS_CTRL1_XL, 4)
183183

184-
185184
_gyro_data_rate = RWBits(4, _LSM6DS_CTRL2_G, 4)
186185
_gyro_range = RWBits(2, _LSM6DS_CTRL2_G, 2)
187186
_gyro_range_125dps = RWBit(_LSM6DS_CTRL2_G, 1)
@@ -254,12 +253,12 @@ def _add_accel_ranges():
254253
@property
255254
def temperature(self):
256255
raw_temp_data = self._raw_temp_data
257-
256+
258257
temperature_raw = raw_temp_data[0] | (raw_temp_data[1] << 8)
259258
temperature_c = temperature_raw / 16.0 + 25.0
260-
259+
261260
return temperature_c
262-
261+
263262
@property
264263
def acceleration(self):
265264
"""The x, y, z acceleration values returned in a 3-tuple and are in m / s ^ 2."""

0 commit comments

Comments
 (0)