Skip to content
This repository was archived by the owner on Dec 13, 2024. It is now read-only.

Commit 1a5296e

Browse files
committed
first commit
1 parent da66e4c commit 1a5296e

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
1616
- repo: https://github.com/pycqa/pylint
17-
rev: v2.15.5
17+
rev: v3.0.0a6
1818
hooks:
1919
- id: pylint
2020
name: pylint (library code)

examples.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"urls": [
3+
["micropython_icg20660/examples/icg20660_gyro_dlpf_mode.py", "github:jposada202020/MicroPython_ICG20660/examples/icg20660_gyro_dlpf_mode.py"],
4+
["micropython_icg20660/examples/icg20660_gyro_full_scale.py", "github:jposada202020/MicroPython_ICG20660/examples/icg20660_gyro_full_scale.py"],
5+
["micropython_icg20660/examples/icg20660_simpletest.py", "github:jposada202020/MicroPython_ICG20660/examples/icg20660_simpletest.py"],
6+
["micropython_icg20660/examples/icg20660_acceleration_range.py", "github:jposada202020/MicroPython_ICG20660/examples/icg20660_acceleration_range.py"],
7+
["micropython_icg20660/examples/icg20660_dlpf_configuration.py", "github:jposada202020/MicroPython_ICG20660/examples/icg20660_dlpf_configuration.py"]
8+
],
9+
"version": "0.1"
10+
}

micropython_icg20660/icg20660.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
acceleration_range_values = (RANGE_2G, RANGE_4G, RANGE_8G, RANGE_16G)
8989
acc_range_sensitivity = (16384, 8192, 4096, 2048)
9090

91+
9192
class ICG20660:
9293
"""Driver for the ICG20660 Sensor connected over I2C.
9394
@@ -259,7 +260,6 @@ def data_rate(self, value):
259260

260261
self.data_rate_divisor = rate_values[value]
261262

262-
263263
@property
264264
def data_rate_divisor(self):
265265
"""
@@ -370,4 +370,4 @@ def gyro(self):
370370
* 0.017453293
371371
)
372372

373-
return x, y, z
373+
return x, y, z

0 commit comments

Comments
 (0)