Skip to content

Commit

Permalink
mip
Browse files Browse the repository at this point in the history
  • Loading branch information
jposada202020 committed Jun 11, 2023
1 parent 16f8a9e commit 082ddb2
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,36 @@ Introduction

MicroPython Driver for the Accelerometer and Gyro ICM20948 Sensor

Installing with mip
====================

To install using mpremote

.. code-block:: shell
mpremote mip install github:jposada202020/MicroPython_ICM20948
To install directly using a WIFI capable board

.. code-block:: shell
mip install github:jposada202020/MicroPython_ICM20948
Installing Library Examples
============================

If you want to install library examples:

.. code-block:: shell
mpremote mip install github:jposada202020/MicroPython_ICM20948/examples.json
To install directly using a WIFI capable board

.. code-block:: shell
mip install github:jposada202020/MicroPython_ICM20948/examples.json
Installing from PyPI
Expand Down
6 changes: 6 additions & 0 deletions examples.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"urls": [
["micropython_icm20948/examples/icm20948_simpletest.py", "github:jposada202020/MicroPython_ICM20948/examples/icm20948_simpletest.py"]
],
"version": "0.1"
}
Empty file.
2 changes: 2 additions & 0 deletions micropython_icm20948/icm20948.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ def __init__(self, i2c, address=_REG_WHOAMI):
self.gyro_full_scale = FS_500_DPS

self.acc_data_rate_divisor = 22
print("ACC Data rate Divisor", self.acc_data_rate_divisor)
self.gyro_data_rate_divisor = 10
print("ACC data rate", self.acc_data_rate)

@property
def clock_select(self):
Expand Down
8 changes: 8 additions & 0 deletions packages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"urls": [
["micropython_icm20948/icm20948.py", "github:jposada202020/MicroPython_ICM20948/micropython_icm20948/icm20948.py"],
["micropython_icm20948/i2c_helpers.py", "github:jposada202020/MicroPython_ICM20948/micropython_icm20948/i2c_helpers.py"],
["micropython_icm20948/__init__.py", "github:jposada202020/MicroPython_ICM20948/micropython_icm20948/__init__.py"]
],
"version": "0.1"
}

0 comments on commit 082ddb2

Please sign in to comment.