Skip to main content

Allow connect with I Dot Matrix screens

Project description

I Dot Matrix SDK

I Dot Matrix SDK is a Python library for controlling the I Dot Matrix display. It provides an easy-to-use interface for controlling the display based on python3-idotmatrix-library

Features

  • Multiple devices support
  • Control the I Dot Matrix display (brightness, turn on/off, etc.)
  • Time functionality
  • Countdown functionality

TODO

  • Text support
  • Image support

Installation

You can install the package using pip:

pip install idotmatrix-sdk

Usage

import asyncio
import logging
import datetime

from idotmatrix_sdk import IDotMatrix
from idotmatrix_sdk import IDotMatrixColor

if __name__ == "__main__":
    logging.basicConfig(level=logging.DEBUG)
    logger = logging.getLogger(__name__)

    async def main():
        devices = await IDotMatrix.search_devices()
        if not devices:
            print("No devices found")
            return

        device = devices[0]
        print(f"Connecting to {device.name} ({device.address})")

        dot_matrix = IDotMatrix(device.address)
        await dot_matrix.connect()

        # Example usage of the IDotMatrix class
        await dot_matrix.set_time(datetime.datetime.now())
        await dot_matrix.turn_on()
        await dot_matrix.set_brightness(100)
        await dot_matrix.set_time_mode(3, True, True, IDotMatrixColor.random_color())

    asyncio.run(main())

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

idotmatrix_sdk-0.1.tar.gz (51.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

idotmatrix_sdk-0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file idotmatrix_sdk-0.1.tar.gz.

File metadata

  • Download URL: idotmatrix_sdk-0.1.tar.gz
  • Upload date:
  • Size: 51.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for idotmatrix_sdk-0.1.tar.gz
Algorithm Hash digest
SHA256 13e2c1aee2ef197692e2ae483b1d30f031e683f0a178446aeb736d8e5857e457
MD5 6db63a132d942142841ecd3323e27367
BLAKE2b-256 f88833b4e82d7548784c2b7b38263892d5c016bd94aa120dbcb713e2ec194c6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for idotmatrix_sdk-0.1.tar.gz:

Publisher: publish.yaml on MiguelAngelLV/python-idotmatrix-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file idotmatrix_sdk-0.1-py3-none-any.whl.

File metadata

  • Download URL: idotmatrix_sdk-0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for idotmatrix_sdk-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 30c0d8c1b4e2b645821bbb3ec98301dbe90b9331481a32ed06d343e4bb0ae871
MD5 fbbfa054cc07cd34e7e61b64f6cb00b1
BLAKE2b-256 2c07e52782fbc8303bb1c30e4b38de62b434977f0995faa8080673a7d030a8a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for idotmatrix_sdk-0.1-py3-none-any.whl:

Publisher: publish.yaml on MiguelAngelLV/python-idotmatrix-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page