Fadecandy Example Code ====================== This directory contains sample projects and configuration files for Fadecandy. * `processing` * Examples for [Processing 2](http://processing.org/), a popular tool for creative coding * `html` * Browser-based examples, written in JavaScript with HTML5 * `node` * JavaScript examples for Node.js * `cpp` * Examples written in C++ * Includes a small header-only effects framework you can copy and reuse * Suitable for resource-constrained systems or very CPU-intensive patterns * Currently supports Linux and Mac OS X only. * `python` * Some examples written in [Python](http://python.org/) * `config` * Sample JSON configuration files for `fcserver` * `layouts` * JSON layout files and layout generators * Compatible with the Open Pixel Control `gl_server`. * Compatible with some of the Node.js examples. * `systemd` * Example systemd .service files for auto-starting on boot in Linux LED Layouts ----------- Some examples are written for a specific LED layout or art project, some examples are general-purpose. For examples that use a specific LED layout, we indicate this with a naming convention. For example, if a project "potato" were written for a 48x24 grid, it would be named "grid48x24_potato". Some of the generic examples (Specifically, the C++ and Node.js ones) can load separate layout files. These are in the same JSON notation used by the [Open Pixel Control](http://openpixelcontrol.org) project, and we use the same naming scheme for those JSON files. Layout names we use so far: * grid8x8 - A simple left-to-right top-to-bottom 8x8 pixel grid * For example, the [AdaFruit NeoMatrix](http://www.adafruit.com/products/1487) * grid24x8z - Three 8x8 zig-zag grids side by side * Channel 0 is the center, and may be used alone. * For example, three of the 8x8 grids from [RGB-123](http://www.kickstarter.com/projects/311408456/rgb-123-led-matrices) * grid32x8z - A 4x2 grid of 8x8 zig-zag grids * Channel 0 is the top-left grid, channel 7 is the bottom-right * For example, eight of the 8x8 grids from [RGB-123](http://www.kickstarter.com/projects/311408456/rgb-123-led-matrices) * strip64 - A single 64-pixel LED strip * triangle16 - A subdivided equilateral triangle with 16 pixels * window6x12 - A complex window display layout made from glass blocks * This example shows how additional properties other than location may be stored in the JSON file. More Examples ------------- There are other places to look for example code too! * The [Open Pixel Control](https://github.com/zestyping/openpixelcontrol) project * Everything here will work with Fadecandy, including their [Python examples](https://github.com/zestyping/openpixelcontrol/tree/master/python) * The [Ardent Mobile Cloud Platform source code](https://github.com/ArdentHeavyIndustries/amcp-rpi) * The [AMCP](http://scanlime.org/2013/09/the-ardent-mobile-cloud-platform/) is the first art project to use Fadecandy. * It controls 2500 LEDs with five Fadecandy boards and a Raspberry Pi. * The software is written in Python, with a C extension to accelerate the LED effects. * It's controlled over Wi-fi, by a [TouchOSC](http://hexler.net/software/touchosc) remote control.