{
  "id": "mattytrentini/micropython-ssd1677",
  "name": "micropython-ssd1677",
  "prettyName": "micropython-ssd1677",
  "description": "Pure MicroPython framebuf-based driver for the SSD1677 e-paper display controller",
  "version": "",
  "author": "mattytrentini",
  "license": "MIT",
  "tags": [],
  "status": "VALID",
  "official": false,
  "source": "https://github.com/mattytrentini/micropython-ssd1677",
  "updatedAt": "2026-11-21T21:32:21.624Z",
  "page": "https://checkmim.com/packages/mattytrentini+micropython-ssd1677",
  "createdAt": "2026-11-21T21:32:19.231Z",
  "submittedBy": "Matt",
  "install": {
    "mpremote": "mpremote mip install github:mattytrentini/micropython-ssd1677",
    "mip": "import mip; mip.install(\"github:mattytrentini/micropython-ssd1677\")"
  },
  "readme": "# micropython-ssd1677\n\nA pure MicroPython, [`framebuf.FrameBuffer`](https://docs.micropython.org/en/latest/library/framebuf.html)-based\ndriver for the SSD1677 e-paper display controller, as used in 800x480\nmonochrome panels such as the one in the [Xteink X4](https://www.xteink.com/products/xteink-x4)\ne-reader.\n\nThree refresh modes are supported:\n- `show()` — full refresh (~1.6s). Slowest, but no ghosting; visibly flashes.\n- `show_partial()` — refreshes only the region changed since the last\n  `show*()` call (tracked automatically). Much quicker (~0.7s measured) and\n  low-flicker, but ghosting accumulates over repeated use.\n- `show_fast()` — full-screen refresh using the panel's alternate waveform.\n  On the Xteink X4 panel this measured about the same speed as `show()`\n  (~1.6s) — the expected speedup didn't show up on this particular panel's\n  OTP waveform table. `show_partial()` is the more reliable way to get a\n  snappier update; `show_fast()` is kept since it may behave differently on\n  other SSD1677 panels.\n\nGhosting from `show_partial()`/`show_fast()` isn't cleared automatically —\ncall `show()` periodically (e.g. every N partial updates) to reset it.\n\n## Install\n\n```python\nimport mip\nmip.install(\"github:mattytrentini/micropython-ssd1677\")\n```\n\n## Usage\n\n```python\nfrom machine import Pin, SPI\nimport ssd1677\n\nspi = SPI(1, baudrate=4_000_000, polarity=0, phase=0, sck=Pin(8), mosi=Pin(10))\n\nepd = ssd1677.SSD1677(\n    800,\n    480,\n    spi,\n    dc=Pin(4),\n    cs=Pin(21),\n    rst=Pin(5),\n    busy=Pin(6),\n)\n\nepd.fill(0)\nepd.text(\"Hello, e-paper!\", 10, 10, 1)\nepd.show()\n```\n\n`SSD1677` subclasses `framebuf.FrameBuffer`, so all the usual drawing methods\n(`pixel`, `line`, `rect`, `fill_rect`, `text`, `blit`, etc.) are available.\nColor `1` draws black (ink), color `0` is white (background) — the driver\nhandles the panel's own inverted RAM convention internally.\n\nNo MISO connection is needed; this driver only ever writes to the panel.\n\nThere's no rotation support: the framebuffer is always in the panel's native\n800(w)x480(h) raster, regardless of how the panel is physically mounted in a\ndevice. If your device holds the panel rotated relative to its native\norientation (as the Xteink X4 does), rotating drawn content is left to the\ncaller for now.\n\n## Acknowledgements\n\nThe SSD1677 command sequence was cross-referenced from\n[Adafruit's CircuitPython SSD1677 driver](https://github.com/adafruit/Adafruit_CircuitPython_SSD1677)\nand [Waveshare's `epd4in26.py` reference driver](https://github.com/waveshareteam/e-Paper),\nwhich is the vendor-native source both this driver and Adafruit's are\nultimately based on.\n\n## License\n\nMIT, see [LICENSE](LICENSE).\n"
}