Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jposada202020 committed Jul 1, 2023
1 parent da66e4c commit 1a5296e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 10 additions & 0 deletions examples.json
Original file line number Diff line number Diff line change
@@ -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"
}
4 changes: 2 additions & 2 deletions micropython_icg20660/icg20660.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -259,7 +260,6 @@ def data_rate(self, value):

self.data_rate_divisor = rate_values[value]


@property
def data_rate_divisor(self):
"""
Expand Down Expand Up @@ -370,4 +370,4 @@ def gyro(self):
* 0.017453293
)

return x, y, z
return x, y, z

0 comments on commit 1a5296e

Please sign in to comment.