{
  "id": "mattytrentini/micropython-tm1680",
  "name": "micropython-tm1680",
  "prettyName": "micropython-tm1680",
  "description": "MicroPython TM1680 driver for CoreMatrix-compatible monochrome LED panels",
  "version": "",
  "author": "mattytrentini",
  "license": "MIT",
  "tags": [],
  "status": "VALID",
  "official": false,
  "source": "https://github.com/mattytrentini/micropython-tm1680",
  "updatedAt": "2026-11-21T12:43:45.642Z",
  "page": "https://checkmim.com/packages/mattytrentini+micropython-tm1680",
  "createdAt": "2026-11-21T12:43:42.906Z",
  "submittedBy": "Matt",
  "install": {
    "mpremote": "mpremote mip install github:mattytrentini/micropython-tm1680",
    "mip": "import mip; mip.install(\"github:mattytrentini/micropython-tm1680\")"
  },
  "readme": "# TM1680 for MicroPython\n\nMIT-licensed I²C driver for 16×16 monochrome panels wired like the\n[M5Stack CoreMatrix](https://docs.m5stack.com/en/core/CoreMatrix). It uses\nMicroPython's native one-bit `framebuf.FrameBuffer` and sends each image\nin one I²C transaction using a reusable 33-byte transmit buffer.\n\n## Install\n\n```sh\nmpremote mip install github:mattytrentini/micropython-tm1680\n```\n\nOn a network-connected device:\n\n```python\nimport mip\nmip.install(\"github:mattytrentini/micropython-tm1680\")\n```\n\n## Draw\n\nProvide an initialized I²C bus and power the display before construction.\nOn CoreMatrix, the M5IOE1 expander controls the display rail; the\n[CoreMatrix application](https://github.com/mattytrentini/m5stack-core-matrix-app)\nhandles that setup and installs this driver automatically.\n\n```python\nfrom tm1680 import TM1680\n\ndisplay = TM1680(i2c, address=0x72, brightness=2)\ndisplay.text(\"HI\", 0, 4, 1)\ndisplay.show()\n```\n\n`brightness(0)` blanks the display without changing the framebuffer.\nLevels 1–16 set global PWM duty. `deinit()` disables the display and its\noscillator but does not switch the external power rail.\n\nProtocol and wiring references: [TM1680 datasheet](https://datasheet.lcsc.com/datasheet/pdf/11c225efe9ad4391ba4fc8ffaab5702e.pdf?productCode=C84836)\nand [M5GFX panel implementation](https://github.com/m5stack/M5GFX/blob/master/src/lgfx/v1/panel/Panel_TM1680.inl).\n"
}