Hello, everyone, I am new here and I have arduino (not official one) for couple of weeks now. I encountered one problem: for loop won't work. I just simply don't get it. It feels like if arduino is actually skipping for loop for unknown reason. Here's the code:
#include <EEPROM.h>
int t, h, i;
void setup ()
{
Serial.begin(9600);
while(!Serial) {}
}
void loop ()
{
for (int i=0; i>=1023; i++)
{
t=EEPROM.read(i);
Serial.print(i);
Serial.print(" ");
Serial.print(t, DEC);
i=i+1;
h=EEPROM.read(i);
Serial.print(i);
Serial.print(" ");
Serial.print(h, DEC);
}
}
I tried some troubleshoting by at least knowing where the problem is. I printed out with serial some characters before, in loop and after loop, but I only got before and after loop characters being written to serial. Other than that, board is just sitting idle, doing completely nothing I guess. What could be the problem?