diff --git a/adafruit_icm20x.py b/adafruit_icm20x.py index 61bdb8f..e6a951d 100644 --- a/adafruit_icm20x.py +++ b/adafruit_icm20x.py @@ -266,7 +266,6 @@ def acceleration(self): """The x, y, z acceleration values returned in a 3-tuple and are in :math:`m / s ^ 2.`""" self._bank = 0 raw_accel_data = self._raw_accel_data - sleep(0.005) x = self._scale_xl_data(raw_accel_data[0]) y = self._scale_xl_data(raw_accel_data[1]) @@ -287,7 +286,6 @@ def gyro(self): return (x, y, z) def _scale_xl_data(self, raw_measurement): - sleep(0.005) return raw_measurement / AccelRange.lsb[self._cached_accel_range] * G_TO_ACCEL def _scale_gyro_data(self, raw_measurement): @@ -530,7 +528,7 @@ class ICM20649(ICM20X): import board import adafruit_icm20x - Once this is done you can define your `board.I2C` object and define your sensor object + Once this is done you can define your ``board.I2C`` object and define your sensor object .. code-block:: python @@ -605,7 +603,7 @@ class ICM20948(ICM20X): # pylint:disable=too-many-instance-attributes import board import adafruit_icm20x - Once this is done you can define your `board.I2C` object and define your sensor object + Once this is done you can define your ``board.I2C`` object and define your sensor object .. code-block:: python @@ -746,7 +744,6 @@ def magnetic(self): self._bank = 0 full_data = self._raw_mag_data - sleep(0.005) x = full_data[0] * _ICM20X_UT_PER_LSB y = full_data[1] * _ICM20X_UT_PER_LSB