Arduino: More than one setSlice

Hi IO-Masters,

I have some issues with the Arduino-Node in the VVVV-Addon-Pack:
I used the Arduino - Help-Patch from Jens-A. Ewald (see the left side of the attached image).
Then I edited it as you can see on the right side.

The help-patch of the Arduino - Node can control a servo and an led at the same time by fading one slider.
On the right side of the image I added a potentiometer instead of the slider to control the LED. This works.

Now I would like to use a potentiometer to control a completely different LED (not the one on pint 6 as in the hall-patch).
This other LED (e.g. at Pin 9) should be controlled independent from each other device connected to the Arduino-board, but i want to use only one Arduino-board. The new LED at Pin 9 should not depend from the preferences made for the LED at Pin 6.
However, I can only connect one set-slice - Node to the Arduino - Node. I would need two of them.
How can I manage this?
Is there maybe something like a Group - Node?

Thanks for your help in advance!

Arduino help-patch edited (34.7 kB)

setslice can be chained, outlet of first setslice goes to second setslice … please read all about spreads in the documentation, see helppatch of setslice.

exactl as u7angle stated. know how to use spreads and you are good to go.
the arduino node takes a spread of max. 20 slices. slice numbers indexes correspond to the according arduino pin index. note, that on the standard arduinos pin 0 nad 1 are not usable, because they are handling the serial data communication. plus: one can also control the analog pins (e.g. use them as default digital IOs) – they start at index 14 (so it is analog 0).

… no text …

Help_vvvvarduino_Edited1.v4p (40.0 kB)

u7angel´s solution works.
I tried it out in the patch below. I chained two set-slice - nodes.
I put a servo to pin 6 and an LED to pin 11 of my Arduino UNO (Both pins are PWM-outputs).
Now, servo and LED can be controlled independently from each other.
Well, not completely independently… When I move the fader for the servo, the LED flickers weirdly as well :-(

Meanwhile I also saw dannielmach´s solution with the Stallone - node.
A bit more complicated but it works.
Now we have the choice.
Thankx for your help!

vvvvarduino_2GetSlices.v4p (21.7 kB)

setslice can manipulate a slice of an existing spread. what you did (i guess) is setting a slice of no spread. just using setslice is not enough.

if you tell setslice to do something with index 11 and no spread goes into setslice, you just change slice 0 instead of 11. you get me ?

spreads are easily visible by hovering over outlets and just see something like this (11)

create a spread with like select for example und change this with setslice.

the flickering is your fault by not using spreads in the right way.

please read about spreads.

Now I put a spread with 20 entries (all of them are 0) to the input of the first setSlice - node, according to my recent image above: Same result.
The slider for the LED acts independently, but the fader for the servo influences the LED.

Then I put a select - node between the first two spreads (in the patch I added below) and the two select - nodes. I wanted to avoid a chain of spreads. Do they probably influence each other?
But how do I get more than 1 input into the Arduino - node without chaining them? The Stallone - solution doesn´t work fine either.

You see, I´m a bit puzzled…
Can you take the sketch below and demonstrate what you mean?

vvvvarduino_2GetSlices_Select.v4p (23.7 kB)