GithubHelp home page GithubHelp logo

piled's Introduction

PiLed

This repo contains my personal tests and examples to control a digital RGB led strip with the Raspberry Pi. Probably this code will work with another controllers/strips too, but I haven't tested that.

The strip I've used is from Adafruit (http://adafruit.com/products/306) and it is controlled with a Raspberry Pi (http://www.raspberrypi.org). The strip is connected to the Pi according to this article: http://learn.adafruit.com/light-painting-with-raspberry-pi/hardware. For the communication between the Pi and the strip, I've used the library provided by Sh4d (https://github.com/Sh4d/LPD8806) and modified it a bit.

If you want to use the Python scripts provided, please make sure you check the settings: my strip is just one meter, so it has 32 leds and this is hardcoded in most of the scripts (if not all). Also I've changed my output in ledstrip.py to /dev/spidev0.1 instead of /dev/spidev0.0. Don't exactly know why, but 0 doesn't work and 1 does.

The run script is added because I'm lazy. Just give it exec permissions and you can run the examples just by typing ./run fade.

Please note!

This are just samples to make myself familiar with Python and controlling the RGB strip. The scripts aren't free of bugs and aren't a complete product (more a proof of concept). I've published these so others can have a quick start, because, apart from the light-painting article mentioned earlier, I couldn't find any good examples. Please feel free to do with it whatever you want.

License

The scripts are licensed under the MIT-license.

piled's People

Contributors

trizz 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.