Giter VIP home page Giter VIP logo

python-raspberrypi-adafruit-trellis's Introduction

Adafruit Trellis Library For Python

This is just an updated version of the apparently discontinued : https://github.com/tdicola/Adafruit_Trellis_Python It is updated to work with the new version of Adafruit I2C library.

ORIGINAL README :

This is a direct port of the Adafruit Trellis library to Python and intended to run on the Beaglebone Black, Raspberry Pi, or other embedded system with Python and I2C support.

Dependencies

This library requires the Adafruit_I2C library is available. You can install this library by following:

Installation

To install, download this repository and execute setup.py as root:

sudo python setup.py install

Usage

The functionality of the library is almost exactly the same as the standard Trellis library. The important differences are:

  • The Adafruit_Trellis class begin() method takes both an I2C address and I2C bus number. This is to support devices with multiple I2C buses.

  • The Adafruit_TrellisSet class can use an arbitrary number of Trellises instead of being limited to 8. With a device that has more than one I2C bus (like the Beaglebone Black), you can control more than 8 Trellises! Note that each I2C bus is still limited to only 8 Trellis devices.

See examples of the library usage in the examples folder. Note that you probably need to run scripts as root so they can access the I2C bus. For example to run the TrellisTest example execute:

sudo python TrellisTest.py

Changes

  • v1.0

    • Initial release

python-raspberrypi-adafruit-trellis's People

Contributors

kevincastejontest avatar

Watchers

James Cloos avatar Kevin Castejon 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.