From a3cbecd05aebfdc4ec0b10412e2eb11ea1d534b8 Mon Sep 17 00:00:00 2001 From: Frederik Vanggaard Date: Thu, 7 Apr 2016 09:02:49 +0200 Subject: [PATCH] Updated README with LED Strip individual pixel control --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 6b836bf..7a28eaf 100644 --- a/README.md +++ b/README.md @@ -138,3 +138,13 @@ It is easy to test and identify different fadecandy's using the port the fadecan Here is you you can identify the Fadecandy if multiple ones are connected or test all the LEDs. There is also an option to configure the server using JSON, but that’s not something I want to get into now. ![](http://drudoo.com/Stuff/online.png) + +## LED Strip + +It is also possible to connect LED stips of various length to the fadecandy. It is basically the same as using a matrix but to initialize the stip we are using: + + opc.ledStrip(0, 64, width/2, height/2, width / 70.0, 0, false); + +First we have the index, since this is the first row of pixels we just use 0 as index. Here we just say the length is 64 pixels, with a midpoint the same as the grid. The spacing is a bit different, but with 64 pixels `width/70` should work. `0` is again the rotation and false specify to direction. + +It's straightforward to change individual pixels and in order to use images as source for the pattern, the fadecandy examples are a good source of information. \ No newline at end of file