Arrays

I am using a TLC5940 LED driver chip and am trying to use arrays to switch the pins on. I have found plenty of examples to switch one pin on at once but i want to switch several on at once. I have the code below and when run it will turn on pin 3 as requested.

#include <Tlc5940.h>

void setup ()
{
  int one[] = {1,3,5};
  Tlc.init ();
  Tlc.set (one[1], 2048);
    while (Tlc.update ());
}

void loop ()
{
}

I wanted to turn on all three pins so i tried.

Tlc.set (one[0,1,2), 2048);

but that didn’t work, it only turned on pin 5 instead of all 3 pins as i expected.

I’m sure you can work out that i’m very new to this so can someone tell me if what i am trying to do is possible and if so where am i going wrong.
Thanks, Hiro.

but that didn’t work

Of course not. But,

  for(byte b=0; b<3; b++)
  {
     Tlc.set (one[b], 2048);
  }
    while (Tlc.update ());

would have.

Cheers PaulS that worked a treat, i'm going to have to google it to understand how it works but that's cool.
Thanks, Hiro.