pycrafter4500
This is an unofficial API for some functionality of the Texas Instruments Lightcrafter 4500. It is no longer maintained.
Code adapted for the TI Lightcrafter 4500 from https://github.com/csi-dcsc/Pycrafter6500
The DLPC 350 is the controller chip on the LCR 4500.
TI DLPC 350 documentation can be found at: http://www.ti.com/product/DLPC350/technicaldocuments
pycrafter4500 documentation can be found at: https://pycrafter4500.readthedocs.io/en/latest/moduledoc.html
Doc strings adapted from dlpc350_api.cpp source code.
To connect to the LCR4500, the libusb-win32 driver is required. The recommended way to do is this is with Zadig. The pyusb package is also required.
Install
pycrafter4500 is available through pypi
pip install pycrafter4500
Usage
import pycrafter4500
Waking up from and going into standby:
pycrafter4500.power_up()
pycrafter4500.power_down()
Toggling back to video mode from pattern sequence mode:
pycrafter4500.video_mode()
Starting a pattern sequence:
# for example: 222 hz, 7 bit depth, white
pycrafter4500.pattern_mode(num_pats=3,
fps=222,
bit_depth=7,
led_color=0b111, # BGR flags
)
If you wish to send other commands, this can be done using the dlpc350 class. See source documentation for further details.
from pycrafter4500 import dlpc350, connect_usb
from pycrafter4500 import bits_to_bytes, conv_len
with connect_usb() as lcr:
lcr.command('w', 0x00, CMD2, CMD3, payload)
Metadata
Release files for pycrafter4500 0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycrafter4500-0.7-py3-none-any.whl | Python 3 | none | any | Details for pycrafter4500-0.7-py3-none-any.whl |
Release files / pycrafter4500-0.7-py3-none-any.whl
| Download URL | pycrafter4500-0.7-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
165f941c2199578afa6d19127eeb837e3009a23b454cf680065b3e0c11193e10
|
|
BLAKE2b-256 checksum How to use checksums |
22080954fe1524e2fe16722d70a1ee0da20e181737ebe0d6712181a5744d6f50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Security for pycrafter4500 0.7
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.