Ok, I'm stuck.
Messing around with a message which looks like:
(String but the values are numbers)
n ranges from 0 to 7.
the others from 0 to 256.
(Guess what I am doing - rhetorical)
Because I am curious I want to mix and match the messages.
So though #0 is usually on I want to blink it on/off.
But that is difficult because I can't control message timing.
The idea is to store them as
flow variables (or context, I guess) and when a message arrives the values are stored.
When another message arrives, the new values are added to the values.
Another part (so I guess the do need to be
flow) these values are read in and sent out to the LEDs.
Part of the problem is how to merge them so I can both turn things on and off with ease.
(I'm thinking XOR now)
But the other part is how to pull apart the messages and store them.
I get that the first one is the index but then I am stuck.
Basically this is the idea:
LED 0 turns on GREEN.
0,0,128,0 and LED 0 turns OFF. (Given no other signals in the mean time.)
That's nice all things being as they are, but it is difficult to also have a "TURN ALL LEDS OFF" function in there too..... Ok. Just realised: Set the values directly and not via the XOR.
But, back to the problem:
How do I handle the message to set the