Giter VIP home page Giter VIP logo

pycrafter4500's Introduction

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/lit/ug/dlpu010f/dlpu010f.pdf

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)

pycrafter4500's People

Contributors

arrrobase avatar timzon avatar nilsmelchert avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.