Skip to main content

Logo

idotmatrix-api-client

Control 16x16, 32x32 and 64x64 sized iDotMatrix Pixel Displays

Contributors License

Features

An iDotMatrix pixel display showing a pixel art picture

A library to control displays like the one on the right without the official iDotMatrix app, based on its reverse engineered Bluetooth protocol.

Looking for Home Assistant? The ha-idotmatrix integration is built on this library.

  • Show photos, animated GIFs and pixel art, with text on top, or store them in the slots of the device so that it cycles through them on its own
  • Clock, countdown, chronograph, scoreboard, graffiti board, effects and a full screen color
  • Scrolling text with the bundled pixel fonts
  • Music sync with the microphone of the device
  • Brightness, eco mode, power and time
  • Alarms, which make the device beep (untested, see the protocol notes)
  • Digital picture frame for a folder of pictures
  • Terminal UI to try all of it
  • Works with the 16x16, 32x32 and 64x64 displays, with bleak or with the Bluetooth stack of Home Assistant

Open ends (the cloud API, password protection, firmware update) are collected in the device protocol notes.


Getting Started

You need Python 3.12 or newer and a display that works with the iDotMatrix app (Windows may work but is untested).

Terminal UI

The quickest way to try your display: browse a folder, preview how pictures and animations look on the display, send them, and control its features, with a pixel editor.

The terminal UI: the files of a folder, the preview as it looks on the display and the details

pip install 'idotmatrix-api-client[tui]'
idotmatrix-tui /path/to/pictures

See the TUI notes for the keys and options. The terminal UI and its dependencies (textual) are optional: pip install idotmatrix-api-client installs only the API client, which never loads them.

API Client

To control the display from your own code, install the library and use the IDotMatrixClient:

pip install idotmatrix-api-client
import asyncio

from idotmatrix import IDotMatrixClient, ScreenSize


async def main():
    client = IDotMatrixClient(screen_size=ScreenSize.SIZE_64x64)
    await client.connect()  # connects to the first iDotMatrix display it finds

    await client.set_brightness(50)
    await client.text.show_text("Hello World!")
    await client.image.show_image_file("photo.jpg")


asyncio.run(main())

The examples show more: GIFs, labels, effects, and storing files in the slots of the device.

Digital Picture Frame

The DigitalPictureFrame class builds on the client and shows images and GIFs as a slideshow. It can

  • display a static list of images and/or GIFs
  • watch one or more directories for images and GIFs
  • automatically reconnect to the device in case of an error or connection loss

See examples/example_digital_picture_frame.py for how to use it.

Home Assistant and other Bluetooth stacks

If something else owns the Bluetooth stack, like Home Assistant with its scanner and Bluetooth proxies, see the integration notes.

Fonts

Text is drawn in 1-bit cells without anti-aliasing, so pixel fonts work best. The package bundles a selection that was tested at fixed font_size values. See the font notes for the sizes, licenses and how to add more.

Other Hardware

This software is specifically built for devices which are supported by the iDotMatrix app. There are other devices being sold which have a similar form factor and claim to be compatible, but which are not. Below is a list of known non-iDotMatrix-compatible hardware and associated software.

Contributing

GitHub is for social coding: if you want to write code, I encourage contributions through pull requests from forks of this repository. Create GitHub tickets for bugs and new features and comment on the ones that you are interested in.

To work on the library, see the development notes.

License

Distributed under the GNU GENERAL PUBLIC License. See LICENSE for more information.

Differences From The Original Project

This is a fork of derkalle4/python3-idotmatrix-library, which is no longer maintained. The fork continues its development and maintenance.

The API is not compatible with the original: the structure was reworked for usability and maintainability, so code written for the original needs some adjustments to run with this library. Returning the raw bytearray data of commands was dropped to keep the library simple.

Acknowledgements

Original project by derkalle4 and jmgraeffe.

Metadata

Release files for idotmatrix-api-client 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for idotmatrix-api-client 1.1.0
File Size Uploaded Provenance Actions
idotmatrix_api_client-1.1.0.tar.gz 477.5 kB With provenance Details for idotmatrix_api_client-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for idotmatrix-api-client 1.1.0
File Interpreter ABI Platform Actions
idotmatrix_api_client-1.1.0-py3-none-any.whl Python 3 none any Details for idotmatrix_api_client-1.1.0-py3-none-any.whl

Total release size: 998.7 kB

Release files / idotmatrix_api_client-1.1.0.tar.gz

Download URL idotmatrix_api_client-1.1.0.tar.gz
Size 477.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7a2b467f9e3ef1d2680c594723f73d00cb902eab729253e8df865d2095a5fd9d
BLAKE2b-256 checksum
How to use checksums
2929502992c5485c98ce3ddd65ace5af59f7d2be4f69691b3009a2b1c9772fb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / idotmatrix_api_client-1.1.0-py3-none-any.whl

Download URL idotmatrix_api_client-1.1.0-py3-none-any.whl
Size 521.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3bd309b78fe78594f8589c920c5378e9d7b0a64a85ec63c66adb7780bb70206
BLAKE2b-256 checksum
How to use checksums
9d737b483317a7104cf48754ca7e1ff468c386727c4789632b54cbd93deb3329
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for idotmatrix-api-client 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for idotmatrix_api_client-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page