Simple Java OPC client for the [Fadecandy](http://www.misc.name/fadecandy/).
Simple Java OPC client for the [Fadecandy](http://www.misc.name/fadecandy/).
This client doesn't take advantage of all the cool temporal dithering
This is an alternative to the Processing client, providing a simpler interface similar to Adafruit's [NeoPixel library for Arduino](https://github.com/adafruit/Adafruit_NeoPixel).
provided by the Processing client, but provides simpler interface similar
to Adafruit's [NeoPixel library for Arduino](https://github.com/adafruit/Adafruit_NeoPixel).
# Writing simple pixel programs
# Writing simple pixel programs
Here is a simple Java program that will color some of the lights:
Here is a simple Java program that will color some of the lights:
...
@@ -55,8 +53,7 @@ public class RandomPixels extends Animation {
...
@@ -55,8 +53,7 @@ public class RandomPixels extends Animation {
# Server Configuration
# Server Configuration
The Fadecandy has eight pins, each of which can control a strip of 64 pixels.
The Fadecandy has eight pins, each of which can control a strip of 64 pixels.
If you have contiguous strips of pixels starting on pin zero, then your `fc_server` won't need
If you have contiguous strips of pixels starting on pin zero, then your `fc_server` won't need to map the output pixels numbers to configurable OPC numbers. However, if you have
to map the output pixels numbers to configurable OPC numbers. However, if you have
shorter strips connected to different pins, you may want to set up a [JSON configuration file](https://github.com/scanlime/fadecandy/blob/master/doc/fc_server_config.md)
shorter strips connected to different pins, you may want to set up a [JSON configuration file](https://github.com/scanlime/fadecandy/blob/master/doc/fc_server_config.md)
for the server. The `OpcClient` class can print out a JSON configuration based on
for the server. The `OpcClient` class can print out a JSON configuration based on
strip definitions:
strip definitions:
...
@@ -87,8 +84,6 @@ For the above setup, the JSON server configuration should be:
...
@@ -87,8 +84,6 @@ For the above setup, the JSON server configuration should be: