I have two loops. if i run this piece of code, the first loop will do his job first, then the second one.
But it's not wat i want, i want the loops are combined, so both actions wil perform "at the same time".
I've tried this but that doesn't work. Can anyone help? Thanks in advance.
for (int i = 8; i > -1; i--) {
setPixel(i,7,0,1,0,0);
delay(TD10);
}
for (int k = 0; k < 8; k++) {
setPixel(7,7,k,1,0,0);
delay(TD10);
}
for (int i = 8; i > -1; i-- && int k = 0; k < 8; k++) {
setPixel(i,7,0,1,0,0);
setPixel(7,7,k,1,0,0);
delay(TD10);
}
well, i think the previous post was in the wrong section. In this section i got an quicker answer. In the previous post the question was not totally clear.
And in the origin post you did not use code tags. That puts a lot of people off answering a question because they think if he can't be arsed to read how to use this forum, I can't be arsed answering them.