Skip to main content

A python interface to communicate over USB with the TI Lightcrafter 4500

Project description

version_badge downloads_badge license_badge docs_badge

pycrafter4500

This is an unofficial API for some functionality of the Texas Instruments Lightcrafter 4500.

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

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)

Project details


Download files

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

Source Distribution

pycrafter4500-0.6.tar.gz (7.1 kB view details)

Uploaded Source

File details

Details for the file pycrafter4500-0.6.tar.gz.

File metadata

  • Download URL: pycrafter4500-0.6.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for pycrafter4500-0.6.tar.gz
Algorithm Hash digest
SHA256 678e51935131e0ed724ec40fe47fae157fa84b9c78f8e64b796fc9c4503d06d6
MD5 1dc6e2a2b70910d0f880432d0caeda43
BLAKE2b-256 fc46f5dd50b8cc8a757992c04e403de3835590929715a381e3c85645a2881c52

See more details on using hashes here.

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