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

Commit

Permalink
adding config_file
Browse files Browse the repository at this point in the history
  • Loading branch information
jposada202020 committed Jul 8, 2023
1 parent 0a9ecad commit 556be9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion micropython_bmi270/bmi270.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import time
from micropython import const
from micropython_bmi270.i2c_helpers import CBits, RegisterStruct
from micropython_bmi270.config_file import bmi270_config_file


try:
from typing import Tuple
Expand Down Expand Up @@ -289,6 +289,7 @@ def load_config_file(self) -> None:
if self.internal_status == 0x01:
print(hex(self._address), " --> Initialization already done")
else:
from micropython_bmi270.config_file import bmi270_config_file
print(hex(self._address), " --> Initializing...")
self._power_configuration = 0x00
time.sleep(0.00045)
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"urls": [
["micropython_bmi270/__init__.py", "github:jposada202020/MicroPython_BMI270/micropython_bmi270/__init__.py"],
["micropython_bmi270/i2c_helpers.py", "github:jposada202020/MicroPython_BMI270/micropython_bmi270/i2c_helpers.py"],
["micropython_bmi270/bmi270.py", "github:jposada202020/MicroPython_BMI270/micropython_bmi270/bmi270.py"]
["micropython_bmi270/bmi270.py", "github:jposada202020/MicroPython_BMI270/micropython_bmi270/bmi270.py"],
["micropython_bmi270/config_file.py", "github:jposada202020/MicroPython_BMI270/micropython_bmi270/config_file.py"]

],
"version": "0.1"
}

0 comments on commit 556be9c

Please sign in to comment.