Multiple Strings or One String address parts

In my raspberry pi 3B+ project, I need to have two individually managed parts. I’m using SPI/WS2801 LEDs.

Is it better to setup a second string to be addressed differently somehow or to address parts of one string and then parts of another? I see the PI has a second SPI port setup on pins 38 & 40 so I was tending that direction, but I seek the experience of those who have gone before.

Thanks,

Josiah

They are on different device paths. I appreciate the heads up on split also. Thanks Tom.

···

On Thu, Oct 25, 2018, 8:50 AM Tom Swirly tom@swirly.com wrote:

This is pretty easy to do, I think!

I’m not entirely sure how two separate SPI ports are handled but my guess is that they’re on two different device paths?

If so, you can have a project like this:

drivers:

  • typename: .SPI.WS2801
num: 64
dev: /dev/spidev0.0
  • typename: .SPI.WS2801
num: 64
dev: /dev/spidev0.1

Or with the same meaning:

driver:

typename: .SPI.WS2801

num: 64

drivers:

  • dev: /dev/spidev0.0
  • dev: /dev/spidev0.1

If you do that, you’ll address the lights as one continuous string from the first to the second. There is also a container Animation to break them up so you can run one animation on one and one on another, called Split.

On Wed, Oct 24, 2018 at 11:22 PM Josiah Ritchie josiah.ritchie@gmail.com wrote:

In my raspberry pi 3B+ project, I need to have two individually managed parts. I’m using SPI/WS2801 LEDs.

Is it better to setup a second string to be addressed differently somehow or to address parts of one string and then parts of another? I see the PI has a second SPI port setup on pins 38 & 40 so I was tending that direction, but I seek the experience of those who have gone before.

Thanks,

Josiah

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/CANyh6VsbNO2UFJ1-V%3DUEuku707uYW44JBdv%3Dp_u_8mGwv2aQ_w%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


/t

https://tom.ritchford.com

https://tom.swirly.com