Unable to access the LED 2 on the Nano blinkstick (.NET)

Hello,

I am trying to access the LED 2 on the Nano Blinkstick, and there’s no documentation on how to do that. I can access the first one using:

public void changeColor(string color)
        {
            foreach (BlinkStick b in blinkStick)
            {
                if (blinkStick != null)
                {
                    b.OpenDevice();
                    b.SetColor(color);
                    b.CloseDevice();
                }
            }
        }

How can I get LED2 to set the same color?

Please use the function SetColor(byte channel, byte index, byte r, byte g, byte b) to set the color of the second LED:

SetColor(0, 1, 255, 0, 0) //Sets color red

SetColor(0, 1, 255, 255, 255) //Sets color white

SetColor(0, 1, 0, 0, 0) //Turns off

Hope this helps!

What is the SetColor command for the first LED on the Nano blinkstick?

Is it:

SetColor(0, 0, 255, 0, 0) //Sets LED1 color red
?

Thanks

@arvydas Please could you tell me the SetColor command in C-Sharp to set the first LED to red on the Nano Blinkstick? Thank you.