Which bit of 'B0011' corresponds to say pin 9. Bits are numbered with 0 on the right thru 3 on the left just the right side of the 'B'
int pins[] = {9,10,11,12}; // an array of pin numbers
int pinCount = 4;
int data[] = {B0000,B0001,B0010,B0011}; // array of data