https://github.com/echo-lalia/qmi8658-micropython
Simple MicroPython driver for the QMI8658 IMU
https://github.com/echo-lalia/qmi8658-micropython
Last synced: 3 months ago
JSON representation
Simple MicroPython driver for the QMI8658 IMU
- Host: GitHub
- URL: https://github.com/echo-lalia/qmi8658-micropython
- Owner: echo-lalia
- License: mit
- Created: 2024-10-31T21:16:23.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-31T22:49:53.000Z (8 months ago)
- Last Synced: 2025-01-20T10:11:41.617Z (5 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Simple port of a QMI8685 sensor driver to MicroPython.
Example usage:
```Python
from machine import Pin, I2C
from qmi8658. import QMI8658
import timesensor = QMI8658(
I2C(0, sda=Pin(11), scl=Pin(12)),
)while True:
print(f"""
QMI8685
{sensor.temperature=}
{sensor.acceleration=}
{sensor.gyro=}
""")
time.sleep(1)
```
Example output:
```Python
QMI8685
sensor.temperature=0.6914063
sensor.acceleration=(-0.046875, 1.006836, 0.3925781)
sensor.gyro=(-1.601563, -1.984375, -1.4375)
```