One small part of a project I'm working on involves comparing elements of two arrays. Right now all I'm trying to do is get the program to read through each value in the array and print it out, but I'm having trouble and not sure why. It prints the values that I specify and anything after the for loop, but nothing inside it.
void setup(void)
{
Serial.begin(115200);
while (!Serial);
Serial.println("Serial Working");
}
void loop()
{
int i = 0; //counter for reading through data array
char test[] = {0,1,2,3,4,5,6,7};
byte unique[] = {0x9B,0x07,0x10,0xA1,0x2D,0x08,0x04};
Serial.println("Wait for it....");
delay(3000);
Serial.println(unique[1],HEX);
Serial.println(unique[2],HEX);
delay(2000);
for (i<15; i++;)
{
Serial.print(unique[i],HEX);
Serial.println();
Serial.print(test[i],DEC);
}
Serial.println(i,DEC);
}