A simple example of how to talk to an Open Pixel Control server from Haskell.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
ChangeLog.md
LICENSE
Main.hs
README.md
Setup.hs
config.json
hs-opc-client.cabal

README.md

This is an example of how to use Haskell to talk to an Open Pixel Control server, (such as a FadeCandy, or my ESP8266-based server), to control strings of RGB LED lights.

If run with no arguments, hs-opc-client sets the string color to all white. If run with one argument, the argument must be one of the color names black, blue, cyan, green, magenta, orange, purple, red, white, yellow, or random. If run with three arguments, each argument must be an integer between 0-255, forming an RGB triple.

Various command-line options exist for setting the server to connect to, setting the brightness, etc. For details, run with --help.

For more information, see my blog post.