Hi
it seems to me that something is wrong with this - when using unsigned int and increasing its value past the max it will just stack on the max value without rolling over:
unsigned int x = 1;
for (int i = 0 ; i < lastIndex; i++){
Serial.print(x);
x=x+1000;
Serial.print(":");
}
after number of loops I will just see : 65535
any ideas ?