Code Monkey home page Code Monkey logo

redshift's Introduction

Redshift LED Light Server & Effects Library

Addressable LEDs can be used to create art installations, interactive clothing, real-time music visualisations and more.

This project is an attempt to make programming LEDs more convenient and fun, with a real-time remote control interface / web-based IDE. It's still in design stages but useful enough to experiment with.

In the end, I hope this will be enable more people to experiment with programming and controlling lighting / art installations in their own homes and other spaces.

github.com/brianewing/redshift-web

Features

  • Compose, layer and blend an effect chain with real time feedback, save + reload
  • Growing list of built-in effects like Rainbow, Larson Scanner, Game of Life, Mood, Stripe, Strobe, Gamma, Brightness, Sepia
  • Building block effects such as Layer, Mirror, Layout, Switch, Toggle, Trigger
  • Effect parameters controllable in real time via UI, web socket, OPC, OSC, MIDI, time, tween functions and JavaScript expressions
  • External effect support with simple stdio interface (pixel buffer bytes in/out)
    • Web IDE has syntax support for Python, JavaScript and CoffeeScript. Extensions welcome
    • Any language can be used, so long as it can handle stdio
    • Hot reload whenever the executable file / script changes
  • Flexible OpenPixelControl input and forwarding - server and effects are configurable using system exclusive commands
  • Render to ws2811/ws2812(b) LEDs (Raspberry Pi supported, pull requests welcome for other hardware)
  • Web UI in development, rendering at 60 FPS with a real time script editor and minimalist, responsive controls

Getting Started

Working with real LEDs and electricity takes a lot of patience, responsibility & care.

You are responsible for your own safety and hardware, and this software comes without any warranty.

If you just want to experiment with the web UI and start making some effects, skip to Prerequisites!

For information about setting up ws2812 LEDs with a Raspberry Pi, see jgarff/rpi_ws281x and the Adafruit website on NeoPixel best practices.

Prerequisites

The software requires a working Go environment to build (see https://golang.org/doc/install)

ws2811/2(b) is supported on Raspberry Pis running Linux (go build +ws2811) with the jgarff/rpi_ws281x library installed.

Make sure rpi_ws281x headers (.h) and objects (.so / .a) have been copied to /usr/local/include and /usr/local/lib respectively if you intend to use the +ws2811 build tag.

Installing

To set up Redshift, assuming $GOPATH is ~/go (default):

  1. $ go get github.com/brianewing/redshift
  2. $ cd ~/go/src/github.com/brianewing/redshift
  3. $ go build
  4. $ ./redshift

It's recommended to install and run the web UI too.

With the server and UI running, you should see something like this:

Screenshot

Running tests

The server includes a few benchmarks to compare the performance of different hardware and catch regressions.

To run them:

  1. cd ~/go/src/github.com/brianewing/redshift
  2. go test -bench=.

Built with

Contributing

Contributions are welcome! Hack away!

Versioning

The project uses SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project, if they are not already listed here.

License

This project is licensed under the Affero GPL v3 License - see the LICENSE file for details

Acknowledgements

redshift's People

Contributors

brianewing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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