diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3aeac95..76e8220 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/pycqa/pylint - rev: v2.15.5 + rev: v3.0.0a6 hooks: - id: pylint name: pylint (library code) diff --git a/examples.json b/examples.json index e69de29..b51acca 100644 --- a/examples.json +++ b/examples.json @@ -0,0 +1,10 @@ +{ + "urls": [ + ["micropython_icg20660/examples/icg20660_gyro_dlpf_mode.py", "github:jposada202020/MicroPython_ICG20660/examples/icg20660_gyro_dlpf_mode.py"], + ["micropython_icg20660/examples/icg20660_gyro_full_scale.py", "github:jposada202020/MicroPython_ICG20660/examples/icg20660_gyro_full_scale.py"], + ["micropython_icg20660/examples/icg20660_simpletest.py", "github:jposada202020/MicroPython_ICG20660/examples/icg20660_simpletest.py"], + ["micropython_icg20660/examples/icg20660_acceleration_range.py", "github:jposada202020/MicroPython_ICG20660/examples/icg20660_acceleration_range.py"], + ["micropython_icg20660/examples/icg20660_dlpf_configuration.py", "github:jposada202020/MicroPython_ICG20660/examples/icg20660_dlpf_configuration.py"] + ], + "version": "0.1" +} diff --git a/micropython_icg20660/icg20660.py b/micropython_icg20660/icg20660.py index 78dc531..76414f8 100644 --- a/micropython_icg20660/icg20660.py +++ b/micropython_icg20660/icg20660.py @@ -88,6 +88,7 @@ acceleration_range_values = (RANGE_2G, RANGE_4G, RANGE_8G, RANGE_16G) acc_range_sensitivity = (16384, 8192, 4096, 2048) + class ICG20660: """Driver for the ICG20660 Sensor connected over I2C. @@ -259,7 +260,6 @@ def data_rate(self, value): self.data_rate_divisor = rate_values[value] - @property def data_rate_divisor(self): """ @@ -370,4 +370,4 @@ def gyro(self): * 0.017453293 ) - return x, y, z \ No newline at end of file + return x, y, z