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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13e2c1aee2ef197692e2ae483b1d30f031e683f0a178446aeb736d8e5857e457
|
|
| MD5 |
6db63a132d942142841ecd3323e27367
|
|
| BLAKE2b-256 |
f88833b4e82d7548784c2b7b38263892d5c016bd94aa120dbcb713e2ec194c6d
|
Provenance
The following attestation bundles were made for idotmatrix_sdk-0.1.tar.gz:
Publisher:
publish.yaml on MiguelAngelLV/python-idotmatrix-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
idotmatrix_sdk-0.1.tar.gz -
Subject digest:
13e2c1aee2ef197692e2ae483b1d30f031e683f0a178446aeb736d8e5857e457 - Sigstore transparency entry: 192956229
- Sigstore integration time:
-
Permalink:
MiguelAngelLV/python-idotmatrix-sdk@b5d514ca8b61df617ab1027c94241ae3645310b8 -
Branch / Tag:
refs/tags/V0.1 - Owner: https://github.com/MiguelAngelLV
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@b5d514ca8b61df617ab1027c94241ae3645310b8 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30c0d8c1b4e2b645821bbb3ec98301dbe90b9331481a32ed06d343e4bb0ae871
|
|
| MD5 |
fbbfa054cc07cd34e7e61b64f6cb00b1
|
|
| BLAKE2b-256 |
2c07e52782fbc8303bb1c30e4b38de62b434977f0995faa8080673a7d030a8a4
|
Provenance
The following attestation bundles were made for idotmatrix_sdk-0.1-py3-none-any.whl:
Publisher:
publish.yaml on MiguelAngelLV/python-idotmatrix-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
idotmatrix_sdk-0.1-py3-none-any.whl -
Subject digest:
30c0d8c1b4e2b645821bbb3ec98301dbe90b9331481a32ed06d343e4bb0ae871 - Sigstore transparency entry: 192956230
- Sigstore integration time:
-
Permalink:
MiguelAngelLV/python-idotmatrix-sdk@b5d514ca8b61df617ab1027c94241ae3645310b8 -
Branch / Tag:
refs/tags/V0.1 - Owner: https://github.com/MiguelAngelLV
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@b5d514ca8b61df617ab1027c94241ae3645310b8 -
Trigger Event:
release
-
Statement type: