Hi,
can someone explain to me what this for loop does in the simplest way?
Note: loops are nested
for (i = 0; i < 1024; i++) {
for (j = 1; j < 1000; j++) { }
Thank you very much.
Hi,
can someone explain to me what this for loop does in the simplest way?
Note: loops are nested
for (i = 0; i < 1024; i++) {
for (j = 1; j < 1000; j++) { }
Thank you very much.
Since you didn't post a complete sketch, it's kind of hard to tell from the context if the two loops are nested or separate. Start with this: for - Arduino Reference
It's called nested loops. It is used to access mutil-dimensions data
Shnizer7:
Hi,can someone explain to me what this for loop does in the simplest way?
for (i = 0; i < 1024; i++) {
for (j = 1; j < 1000; j++) { }
Thank you very much.
If { } is true, it does nothing.
If you’re lucky, the compiler will see this, and simply optimise it away completely.