{"id":2125,"date":"2013-10-15T05:10:29","date_gmt":"2013-10-15T05:10:29","guid":{"rendered":"http:\/\/funkboxing.com\/wordpress\/?p=2125"},"modified":"2021-01-03T18:02:11","modified_gmt":"2021-01-03T18:02:11","slug":"fastspi2-multiple-strip-setup","status":"publish","type":"post","link":"http:\/\/funkboxing.com\/wordpress\/?p=2125","title":{"rendered":"FastSPI2 Multiple Strip Setup"},"content":{"rendered":"<p>I had a little trouble finding references to how to setup multiple strips with FastSPI2, so I thought I&#8217;d post this.<\/p>\n<p>You just use an offset value like in this example:<\/p>\n<pre>LEDS.addLeds&lt;WS2801, 7, 9,   RGB&gt;(leds, 43);       \/\/&lt;---Strip1 - WS2801 - 43 LEDs\r\nLEDS.addLeds&lt;WS2801, 11, 13, RGB&gt;(leds, 43, 12);   \/\/&lt;---Strip2 - WS2801 - 12 LEDs\r\nLEDS.addLeds&lt;WS2811, 5,      GRB&gt;(leds, 55, 16);   \/\/&lt;---Strip3 - WS2811 - 16 LEDs<\/pre>\n<p>In the additional strips the first integer passed becomes the offset value and the second is the number of LEDs in the strip.<\/p>\n<pre>LEDS.addLeds&lt;STRIP, CLK_PIN, DATA_PIN, RGB_ORDER&gt;(ARRAY, OFFSET, LED_COUNT);<\/pre>\n<p><iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/OiNdYxjQxUE\" height=\"315\" width=\"420\" allowfullscreen=\"\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a little trouble finding references to how to setup multiple strips with FastSPI2, so I thought I&#8217;d post this. You just use an offset value like in this example: LEDS.addLeds&lt;WS2801, 7, 9, RGB&gt;(leds, 43); \/\/&lt;&#8212;Strip1 &#8211; WS2801 &#8211; 43 LEDs LEDS.addLeds&lt;WS2801, 11, 13, RGB&gt;(leds, 43, 12); \/\/&lt;&#8212;Strip2 &#8211; WS2801 &#8211; 12 LEDs LEDS.addLeds&lt;WS2811, <a href='http:\/\/funkboxing.com\/wordpress\/?p=2125' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,53,47],"tags":[42],"_links":{"self":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2125"}],"collection":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2125"}],"version-history":[{"count":1,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2125\/revisions"}],"predecessor-version":[{"id":2126,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2125\/revisions\/2126"}],"wp:attachment":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2125"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}