Running separate WS2801 strands off of one Arduino?

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
SubjectDelta
 
Posts: 8
Joined: Sun Sep 14, 2014 2:26 am

Running separate WS2801 strands off of one Arduino?

Post by SubjectDelta »

So, I have a strand of the 36MM and a strand of the 12MM WS2801 pixel strands. I've been using the Adafruit Arduino library to control one at a time, but I was wondering if there was any way to wire them into different pins on the Arduino and alter the code to run them as two individual matrices at the same time.

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: Running separate WS2801 strands off of one Arduino?

Post by Franklin97355 »

You should be able to use this to start a string called "strip1" and then run another similar line changing the instance to "strip2"

Code: Select all

int dataPin1 = 2;
int clockPin1 = 3;
int dataPin2 = 4;
int clockPin2 = 5;
 
// Set the first variable to the NUMBER of pixels. 25 = 25 pixels in a row
Adafruit_WS2801 strip1 = Adafruit_WS2801(25, dataPin1, clockPin1);
Adafruit_WS2801 strip2 = Adafruit_WS2801(25, dataPin2, clockPin2);

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”