6363_LSM6DS_DEFAULT_ADDRESS = const (0x6A )
6464
6565_LSM6DS_CHIP_ID = const (0x6C )
66- _ISM330DHCT_CHIP_ID = const (0x6B )
66+ _ISM330DHCX_CHIP_ID = const (0x6B )
6767_LSM6DS33_CHIP_ID = const (0x69 )
6868
6969_LSM6DS_FUNC_CFG_ACCESS = const (0x1 )
@@ -294,15 +294,15 @@ def accelerometer_range(self, value):
294294 def gyro_range (self ):
295295 """Adjusts the range of values that the sensor can measure, from 125 Degrees/second to 4000
296296 degrees/s. Note that larger ranges will be less accurate. Must be a `GyroRange`. 4000 DPS
297- is only available for the ISM330DHCT """
297+ is only available for the ISM330DHCX """
298298 return self ._cached_gyro_range
299299
300300 @gyro_range .setter
301301 def gyro_range (self , value ):
302302 if not GyroRange .is_valid (value ):
303303 raise AttributeError ("range must be a `GyroRange`" )
304- if value is GyroRange .RANGE_4000_DPS and not isinstance (self , ISM330DHCT ):
305- raise AttributeError ("4000 DPS is only available for ISM330DHCT " )
304+ if value is GyroRange .RANGE_4000_DPS and not isinstance (self , ISM330DHCX ):
305+ raise AttributeError ("4000 DPS is only available for ISM330DHCX " )
306306
307307 if value is GyroRange .RANGE_125_DPS :
308308 self ._gyro_range_125dps = True
@@ -398,7 +398,7 @@ class LSM6DS33(LSM6DS): # pylint: disable=too-many-instance-attributes
398398 CHIP_ID = _LSM6DS33_CHIP_ID
399399
400400
401- class ISM330DHCT (LSM6DS ): # pylint: disable=too-many-instance-attributes
401+ class ISM330DHCX (LSM6DS ): # pylint: disable=too-many-instance-attributes
402402
403403 """Driver for the LSM6DS33 6-axis accelerometer and gyroscope.
404404
@@ -407,7 +407,7 @@ class ISM330DHCT(LSM6DS): # pylint: disable=too-many-instance-attributes
407407
408408 """
409409
410- CHIP_ID = _ISM330DHCT_CHIP_ID
410+ CHIP_ID = _ISM330DHCX_CHIP_ID
411411
412412 def __init__ (self , i2c_bus , address = _LSM6DS_DEFAULT_ADDRESS ):
413413 super ().__init__ (i2c_bus , address )
0 commit comments