divo
Divoom Pixoo and Divoom Timebox Evo python controller, packet builder/parser and image renderer.
This project aims to fully implement controlling everything the Pixoo can do.
This project is pretty much work in progress
Requirements
- Python 3.7+
- Poetry (
pip install poetry)
Install dependencies using poetry:
poetry install --no-root
Examples
Hints:
- make sure to install the requirements first
- you need a terminal that can render the colors to see the images properly
- add
--send --mac-address 11:75:58:xx:xx:xxto send these packets to your Pixoo - add
--debugfor debug output - there are a lot of tests demo'ing most of the Pixoo modes in the sub-command
test - you can also install divo as a package with
poetry installand then use the installeddivocommand in place ofpoetry run divo
Send image file (16x16 px):
poetry run divo img --send --mac-address 11:75:58:xx:xx:xx test.png
Mudkip (source):
poetry run divo raw 01860044000a0a04aa7f00f40100080000004dbbef2989c8c1c3c5ff9f00ffffff1f1f30bf5c1500002001000000002402000000002402000000004402000000904409000000922449b00140922449b20d64d22469420e64e22471420e27e32471c80ff89b2449ff0d00d6b6adb60d00a06d92b40d00a06d89a40100106d89a401001049893400512802
This gives the following output:
Mudkip (eyes closed):
poetry run divo raw 01860044000a0a04aa7f00f40100080000004dbbef2989c8c1c3c5ff9f001f1f30bf5c15ffffff00000000000000002001000000002402000000002402000000004402000000904409000000922449006c40922449826d64922449426e64da2469436e2693264d486fb09f24c9ed6d00f6ffbfb66d00a06d92a40d00106d89a401001049893400142702
Nyan Cat:
poetry run divo raw 01e40044000a0a04aadd00f401001212173dffffffff0000000000293268ffaa00f193ed7b757bffff02e547da00ff005b585b00aaff6b74b2aa01ff909eddc1d9f2a5e6ff0004000000000000000000000000000000004000420821c618638c4108214208314a29659432c820a594518a31e38c31c619a594518c31e39c73ce1908a1518c49e38471c21808a1519231e38c71c6184aa9518c31c39cb38e194aa9518a49e3ac75d6198c31364a29658c31c6688c3176c618638c735a6bce39b7d67befbdb5de7bce39f7de7befbdf7c27b1042082184104218608031400821841042080384515d02
Palette 4 color test:
poetry run divo raw 015a0044000a0a04aa5300f4010004000000ff0000ff5500ffffffe40000c0000000300000000c000000030000c0000000300000000c000000030000c0000000300000000c000000030000c0000000300000000c00000003000000dc0c02
Palette 8 color test:
poetry run divo raw 01860044000a0a04aa7f00f4010008000000ff0000ff5500ffaa00ffff02adff0000ff00ffffff88c6fa0000e000000000001c000000008003000000007000000000000e00000000c001000000003800000000000700000000e000000000001c000000008003000000007000000000000e00000000c00100000000380000000000070000000000ee1602
Development
Build Dependencies
Install dependencies and pre-commit hooks:
# you may need to install the following tools outside of your virtualenv, too:
pip install poetry pre-commit
poetry install --no-root
poetry run pre-commit install
Metadata
Release files for divo 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| divo-0.1.0.tar.gz | 30.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| divo-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 81.6 kB
Release files / divo-0.1.0.tar.gz
| Download URL | divo-0.1.0.tar.gz |
|---|---|
| Size | 30.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c13993566839feb13dcfe8d86a774f60d60b273b00599a396fd419da7d55f4e1
|
|
BLAKE2b-256 checksum How to use checksums |
7990944414c80046ee4014c44d6f3caf99d390c06de0f3461be792f3b2d73b74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.1 Linux/4.18.0-348.12.2.el8_5.x86_64
|
Release files / divo-0.1.0-py3-none-any.whl
| Download URL | divo-0.1.0-py3-none-any.whl |
|---|---|
| Size | 51.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64258919eef5a425dc857e46b758b06ff9a4da94aac1242c30a09e20cf5c5170
|
|
BLAKE2b-256 checksum How to use checksums |
62023eeb40988ce23ec4333b03e74caf5961a25c0c7682f35b134bb45dda1607
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.1 Linux/4.18.0-348.12.2.el8_5.x86_64
|
Security for divo 0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.