Hi!
Inside a function, the ++ operator will not work on an array element.
Example:
void f1() {
byte t[1];
t[0]=1;
t[0]++;
print(t[0]);
}
This will print "1" (wrong)
void f1() {
byte t[1];
t[0]=1;
t[0]=t[0]+1;
print(t[0]);
}
This will print "2" (right)