{
  "id": "mattytrentini/micropython-qmi8658",
  "name": "micropython-qmi8658",
  "prettyName": "micropython-qmi8658",
  "description": "",
  "version": "",
  "author": "mattytrentini",
  "license": "MIT",
  "tags": [],
  "status": "VALID",
  "official": false,
  "source": "https://github.com/mattytrentini/micropython-qmi8658",
  "updatedAt": "2026-09-08T06:48:03.574Z",
  "page": "https://checkmim.com/packages/mattytrentini+micropython-qmi8658",
  "createdAt": "2026-09-08T06:48:02.366Z",
  "submittedBy": "Matt",
  "install": {
    "mpremote": "mpremote mip install github:mattytrentini/micropython-qmi8658",
    "mip": "import mip; mip.install(\"github:mattytrentini/micropython-qmi8658\")"
  },
  "readme": "# MicroPython QMI8658\n\nSmall dependency-free MicroPython driver for the QST QMI8658 six-axis IMU.\nIt provides combined acceleration (g) and angular-velocity (degrees/second)\nsamples, with no board or UI dependency.\n\n## Install\n\nThe included `package.json` makes the package mip-compatible. Install it on a\nnetwork-connected board with:\n\n```python\nimport mip\nmip.install(\"github:mattytrentini/micropython-qmi8658\")\n```\n\nFor the Waveshare ESP32-C6-Touch-LCD-1.47, the IMU shares I2C(0) with touch:\n\n```python\nfrom machine import I2C, Pin\nfrom qmi8658 import QMI8658\n\ni2c = I2C(0, sda=Pin(18), scl=Pin(19), freq=400_000)\nimu = QMI8658(i2c)  # QMI8658 address 0x6B\nimu.configure()     # checks WHO_AM_I == 0x05, resets, then enables both sensors\nax, ay, az, gx, gy, gz = imu.sample()\n```\n\nThe default configuration is ±8 g, ±512 dps, and ODR selector 3 (about\n896 Hz in six-axis mode). It includes a short post-reset settle period to\navoid a stale first sample; call `configure(reset=False, settle_ms=0)` only\nwhen deliberately restoring an already-running sensor. `raw()`, `sample()`, `acceleration()`,\n`gyroscope()`, `temperature()`, and `sleep()` are available.\n\n## Test\n\n```sh\nPYTHONPATH=. pytest -q\n```\n\nRegister mapping, output format, and scales follow the\n[QMI8658A datasheet](https://files.waveshare.com/upload/5/5f/QMI8658A_Datasheet_Rev_A.pdf).\n"
}