3636
3737**Hardware:**
3838
39- * Adafruit LSM6DSOX Breakout <https://www.adafruit.com/products/4438>
39+ * Adafruit `LSM6DSOX 6 DoF Accelerometer and Gyroscope
40+ <https://www.adafruit.com/product/4438>`_
4041
41- * Adafruit ISM330DHCX Breakout <https://www.adafruit.com/product/4502>
42+ * Adafruit `ISM330DHCX - 6 DoF IMU - Accelerometer and Gyroscope
43+ <https://www.adafruit.com/product/4502>`_
4244
43- * Adafruit LSM6DSO32 Breakout <https://www.adafruit.com/product/4692>
45+ * Adafruit `LSM6DSO32 6-DoF Accelerometer and Gyroscope
46+ <https://www.adafruit.com/product/4692>`_
4447
45- * Adafruit LSM6DS33 Breakout <https://www.adafruit.com/product/4480>
48+ * Adafruit `LSM6DS33 6-DoF Accel + Gyro IMU
49+ <https://www.adafruit.com/product/4480>`_
4650
47- * Adafruit ISM330DHCX + LIS3MDL FEATHERWING <https://www.adafruit.com/product/4569>
51+ * Adafruit `ISM330DHCX + LIS3MDL FeatherWing - High Precision 9-DoF IMU
52+ <https://www.adafruit.com/product/4569>`_
4853
49- * Adafruit LSM6DSOX + LIS3MDL - 9 DOF IMU Breakout <https://www.adafruit.com/product/4517>
54+ * Adafruit `LSM6DSOX + LIS3MDL - Precision 9 DoF IMU
55+ <https://www.adafruit.com/product/4517>`_
5056
51- * Adafruit LSM6DS33 + LIS3MDL - 9 DOF IMU Breakout <https://www.adafruit.com/product/4485>
57+ * Adafruit `LSM6DS33 + LIS3MDL - 9 DoF IMU with Accel / Gyro / Mag
58+ <https://www.adafruit.com/product/4485>`_
59+
60+ * Adafruit `LSM6DSOX + LIS3MDL FeatherWing - Precision 9-DoF IMU
61+ <https://www.adafruit.com/product/4565>`_
5262
53- * Adafruit LSM6DSOX + LIS3MDL 9 DOF IMU FeatherWing <https://www.adafruit.com/product/4565>
5463
5564**Software and Dependencies:**
5665
5766* Adafruit CircuitPython firmware for the supported boards:
58- https://github.com/adafruit/circuitpython/releases
59-
67+ https://circuitpython.org/downloads
68+ * Adafruit's Bus Device library:
69+ https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
70+ * Adafruit's Register library:
71+ https://github.com/adafruit/Adafruit_CircuitPython_Register
6072
61- * Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
62- * Adafruit's Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
6373"""
6474
6575__version__ = "0.0.0-auto.0"
@@ -92,7 +102,7 @@ def add_values(cls, value_tuples):
92102
93103 @classmethod
94104 def is_valid (cls , value ):
95- "Returns true if the given value is a member of the CV"
105+ """ Returns true if the given value is a member of the CV"" "
96106 return value in cls .string
97107
98108
@@ -164,7 +174,8 @@ class LSM6DS: # pylint: disable=too-many-instance-attributes
164174 """Driver for the LSM6DSOX 6-axis accelerometer and gyroscope.
165175
166176 :param ~busio.I2C i2c_bus: The I2C bus the LSM6DSOX is connected to.
167- :param address: The I2C address of the sensor
177+ :param int address: TThe I2C device address. Defaults to :const:`0x6A`
178+
168179 """
169180
170181 # ROUnaryStructs:
@@ -173,8 +184,6 @@ class LSM6DS: # pylint: disable=too-many-instance-attributes
173184 # Structs
174185 _raw_accel_data = Struct (_LSM6DS_OUTX_L_A , "<hhh" )
175186 _raw_gyro_data = Struct (_LSM6DS_OUTX_L_G , "<hhh" )
176- _raw_temp_data = Struct (_LSM6DS_OUT_TEMP_L , "<bb" )
177-
178187 # RWBits:
179188
180189 _accel_range = RWBits (2 , _LSM6DS_CTRL1_XL , 2 )
@@ -249,16 +258,6 @@ def _add_accel_ranges():
249258 )
250259 )
251260
252- @property
253- def temperature (self ):
254- """The temperature, in degrees Celsius."""
255- raw_temp_data = self ._raw_temp_data
256-
257- temperature_raw = raw_temp_data [0 ] | (raw_temp_data [1 ] << 8 )
258- temperature_c = temperature_raw / 16.0 + 25.0
259-
260- return temperature_c
261-
262261 @property
263262 def acceleration (self ):
264263 """The x, y, z acceleration values returned in a 3-tuple and are in m / s ^ 2."""
@@ -290,7 +289,7 @@ def _scale_gyro_data(self, raw_measurement):
290289 @property
291290 def accelerometer_range (self ):
292291 """Adjusts the range of values that the sensor can measure, from +/- 2G to +/-16G
293- Note that larger ranges will be less accurate. Must be an `AccelRange`"""
292+ Note that larger ranges will be less accurate. Must be an `` AccelRange` `"""
294293 return self ._cached_accel_range
295294
296295 # pylint: disable=no-member
@@ -305,7 +304,7 @@ def accelerometer_range(self, value):
305304 @property
306305 def gyro_range (self ):
307306 """Adjusts the range of values that the sensor can measure, from 125 Degrees/s to 2000
308- degrees/s. Note that larger ranges will be less accurate. Must be a `GyroRange`."""
307+ degrees/s. Note that larger ranges will be less accurate. Must be a `` GyroRange` `."""
309308 return self ._cached_gyro_range
310309
311310 @gyro_range .setter
@@ -329,7 +328,7 @@ def _set_gyro_range(self, value):
329328
330329 @property
331330 def accelerometer_data_rate (self ):
332- """Select the rate at which the accelerometer takes measurements. Must be a `Rate`"""
331+ """Select the rate at which the accelerometer takes measurements. Must be a `` Rate` `"""
333332 return self ._accel_data_rate
334333
335334 @accelerometer_data_rate .setter
@@ -343,7 +342,7 @@ def accelerometer_data_rate(self, value):
343342
344343 @property
345344 def gyro_data_rate (self ):
346- """Select the rate at which the gyro takes measurements. Must be a `Rate`"""
345+ """Select the rate at which the gyro takes measurements. Must be a `` Rate` `"""
347346 return self ._gyro_data_rate
348347
349348 @gyro_data_rate .setter
0 commit comments