{
  "id": "mattytrentini/m5stack-unit-dof10",
  "name": "m5stack-unit-dof10",
  "prettyName": "m5stack-unit-dof10",
  "description": "Install the three M5Stack Unit DoF10 sensor drivers with MicroPython mip",
  "version": "",
  "author": "mattytrentini",
  "license": "",
  "tags": [],
  "status": "VALID",
  "official": false,
  "source": "https://github.com/mattytrentini/m5stack-unit-dof10",
  "updatedAt": "2026-11-23T03:46:06.575Z",
  "page": "https://checkmim.com/packages/mattytrentini+m5stack-unit-dof10",
  "createdAt": "2026-11-23T03:45:58.121Z",
  "submittedBy": "Matt",
  "install": {
    "mpremote": "mpremote mip install github:mattytrentini/m5stack-unit-dof10",
    "mip": "import mip; mip.install(\"github:mattytrentini/m5stack-unit-dof10\")"
  },
  "readme": "# M5Stack Unit DoF10 for MicroPython\n\nThis `mip` bundle installs the three drivers for the [M5Stack Unit DoF10](https://docs.m5stack.com/en/unit/Unit_DoF10). It adds no wrapper module and does not run anything at boot.\n\n| Sensor | I²C address | Driver | License |\n| --- | --- | --- | --- |\n| BMI270 accelerometer and gyroscope | `0x68` or `0x69` (switch positions `0` or `1`) | [micropython-lib](https://github.com/micropython/micropython-lib/tree/master/micropython/drivers/imu/bmi270) | MIT |\n| BMM350 magnetometer | `0x14` | [Soldered Electronics](https://github.com/SolderedElectronics/Soldered-BMM350-MicroPython-Library) | GPL-3.0 |\n| SPA06-003 pressure and temperature | `0x76` | [micropython-spa06-003](https://github.com/mattytrentini/micropython-spa06-003) | MIT |\n\n## Install\n\n```sh\nmpremote mip install github:mattytrentini/m5stack-unit-dof10\n```\n\nOr, on a network-connected MicroPython board:\n\n```python\nimport mip\nmip.install(\"github:mattytrentini/m5stack-unit-dof10\")\n```\n\n## Read the sensors\n\nConnect the unit to an I²C Grove port. Power the port and pass the same\ninitialized I²C bus to all three drivers. Set the BMI270 switch to `1` on\nCoreMatrix: the onboard BMI270 already uses `0x68`. The example below uses\n`0x69`; use `0x68` only if the switch is at `0` and that address is free.\n\n```python\nfrom bmi270 import BMI270\nfrom bmm350 import BMM350, BMM350_OK\nfrom spa06_003 import SPA06_003\n\nimu = BMI270(i2c, address=0x69)\nmag = BMM350(i2c)\nbaro = SPA06_003(i2c)\n\nprint(\"Acceleration (g):\", imu.accel())\nprint(\"Angular velocity (deg/s):\", imu.gyro())\nif mag.get_sensor_data() != BMM350_OK:\n    raise OSError(mag.status_string())\nprint(\"Magnetic field (uT):\", (mag.data.mag_x, mag.data.mag_y, mag.data.mag_z))\nprint(\"Temperature (C), pressure (hPa):\", baro.read())\n```\n\nThe [CoreMatrix app](https://github.com/mattytrentini/m5stack-core-matrix-app)\nprovides a board-specific demo that manages Grove Port A power.\n"
}