36
36
37
37
**Hardware:**
38
38
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>`_
40
41
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>`_
42
44
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>`_
44
47
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>`_
46
50
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>`_
48
53
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>`_
50
56
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>`_
52
62
53
- * Adafruit LSM6DSOX + LIS3MDL 9 DOF IMU FeatherWing <https://www.adafruit.com/product/4565>
54
63
55
64
**Software and Dependencies:**
56
65
57
66
* 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
60
72
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
63
73
"""
64
74
65
75
__version__ = "0.0.0-auto.0"
@@ -92,7 +102,7 @@ def add_values(cls, value_tuples):
92
102
93
103
@classmethod
94
104
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"" "
96
106
return value in cls .string
97
107
98
108
@@ -164,7 +174,8 @@ class LSM6DS: # pylint: disable=too-many-instance-attributes
164
174
"""Driver for the LSM6DSOX 6-axis accelerometer and gyroscope.
165
175
166
176
: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
+
168
179
"""
169
180
170
181
# ROUnaryStructs:
@@ -173,8 +184,6 @@ class LSM6DS: # pylint: disable=too-many-instance-attributes
173
184
# Structs
174
185
_raw_accel_data = Struct (_LSM6DS_OUTX_L_A , "<hhh" )
175
186
_raw_gyro_data = Struct (_LSM6DS_OUTX_L_G , "<hhh" )
176
- _raw_temp_data = Struct (_LSM6DS_OUT_TEMP_L , "<bb" )
177
-
178
187
# RWBits:
179
188
180
189
_accel_range = RWBits (2 , _LSM6DS_CTRL1_XL , 2 )
@@ -249,16 +258,6 @@ def _add_accel_ranges():
249
258
)
250
259
)
251
260
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
-
262
261
@property
263
262
def acceleration (self ):
264
263
"""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):
290
289
@property
291
290
def accelerometer_range (self ):
292
291
"""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` `"""
294
293
return self ._cached_accel_range
295
294
296
295
# pylint: disable=no-member
@@ -305,7 +304,7 @@ def accelerometer_range(self, value):
305
304
@property
306
305
def gyro_range (self ):
307
306
"""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` `."""
309
308
return self ._cached_gyro_range
310
309
311
310
@gyro_range .setter
@@ -329,7 +328,7 @@ def _set_gyro_range(self, value):
329
328
330
329
@property
331
330
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` `"""
333
332
return self ._accel_data_rate
334
333
335
334
@accelerometer_data_rate .setter
@@ -343,7 +342,7 @@ def accelerometer_data_rate(self, value):
343
342
344
343
@property
345
344
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` `"""
347
346
return self ._gyro_data_rate
348
347
349
348
@gyro_data_rate .setter
0 commit comments