Multiple LED strips with NeoPixel plugin

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ljoncz
New user
Posts: 5
Joined: 11 Sep 2019, 16:11

Multiple LED strips with NeoPixel plugin

#1 Post by ljoncz » 22 Oct 2019, 20:55

Hi All,

is it possible to handle more than one led strip connected to separate GPIOs using NeoPixel plugin? If yes - how?

thanks
Lech

ljoncz
New user
Posts: 5
Joined: 11 Sep 2019, 16:11

Re: Multiple LED strips with NeoPixel plugin

#2 Post by ljoncz » 24 Oct 2019, 16:15

Did I ask the question incorrectly? I assume this should be a simple yes/no answer...
Really no one knows?

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Multiple LED strips with NeoPixel plugin

#3 Post by TD-er » 24 Oct 2019, 16:26

ljoncz wrote: 24 Oct 2019, 16:15 Did I ask the question incorrectly? I assume this should be a simple yes/no answer...
Really no one knows?
Well it also depends on whether someone who reads the question does know the answer.
For example, I read it, but cannot say from experience that it will work.
If it doesn't work, with two instances of these plugins active, then I probably have to change something in the code.
But for now all I can say to you is to try it and if it doesn't work please add an issue about it on Github.

It is a known issue that not all plugins allow multiple instances of the same plugin to be active at the same time.
The reason is they may keep local data somewhere where it is shared among all instances of the same plugin.
This is obviously not intended but it may prevent to run multiple instances of the same plugin at the same node.

ljoncz
New user
Posts: 5
Joined: 11 Sep 2019, 16:11

Re: Multiple LED strips with NeoPixel plugin

#4 Post by ljoncz » 24 Oct 2019, 17:00

Thanks for the reply.
I assumed it's a popular plugin, and someone would know.
I'd love to test it, but I don't know how.
I can create two devices with different GPIOs, but then there is no way to indicate which device I want to trigger.
The usage is:
// List of commands:
// (1) NeoPixel,<led nr>,<red 0-255>,<green 0-255>,<blue 0-255>
// (2) NeoPixelAll,<red 0-255>,<green 0-255>,<blue 0-255>
// (3) NeoPixelLine,<start led nr>,<stop led nr>,<red 0-255>,<green 0-255>,<blue 0-255>

I've never used GitHub before - is there some guide for raising issues?

ljoncz
New user
Posts: 5
Joined: 11 Sep 2019, 16:11

Re: Multiple LED strips with NeoPixel plugin

#5 Post by ljoncz » 24 Oct 2019, 17:07

Btw - I think I have a workaround solution for the issue. Once I confirm it works, is there a place I can share it with everyone?

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Multiple LED strips with NeoPixel plugin

#6 Post by TD-er » 24 Oct 2019, 17:11

ljoncz wrote: 24 Oct 2019, 17:07 Btw - I think I have a workaround solution for the issue. Once I confirm it works, is there a place I can share it with everyone?
You can propose it here and if it is something we can turn into a pull request then it can also be added to the Github as an issue/pull-request.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 53 guests