pimoroni / plasma

Plasma LED driver, FX Sequencer and plugins
MIT License
17 stars 8 forks source link

Add multi-daemon support #13

Open PinkFreud opened 2 years ago

PinkFreud commented 2 years ago

This is code I wrote earlier this year for multi-daemon support for my arcade build.

It supports per-player plasma daemons, so that players can have individual plasma patterns. In my case, it's working on the Picade X HAT and a Player X board, but this should work on multiple Player X boards just as well.

The modifications here are simple - instead of relying on a statically defined FIFO and pidfile, let these be set on a per-daemon basis. The plasmactl client also has minor modifications to support specifying an alternate FIFO to talk to.

Gadgetoid commented 2 years ago

This is a great idea, and I think I've managed to conflict it to all heck in the interim. Will try and unpick this when I have the time. Sorry for the loooonnnng delay getting back to you.

PinkFreud commented 2 years ago

No problem! It took me far longer than it should have to remember to commit this to github, unfortunately - I think the official copy diverged quite a bit by the time I got around to doing so.

Even so, the changes for this should be pretty easy to implement - I haven't had a chance to update my copy yet, but I suspect it shouldn't be too difficult.