WS2801 - PWM?

for (int i=1; i< 4; i++)
  {
int ii=i-1;

Why not

for (int ii=0; ii< 3; ii++)
  {