Please can somone help
This code will compile for a Arduino Mega But if i try to compile it for my wifi1010 it says
" const int*const index[] redeclared as different kind of symbol"
//index for gridParts /=0,{=1,}=2,;=3,0=4,1=5,2=6,3=7,4=8,5=9,6=10,7=11,8=12,9=13,blank=14
const char gridParts[]PROGMEM = {'/', '{', '}', ';', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ' '};
const int* const index[] PROGMEM = {5, 14, 1, 5, 0, 5, 0, 6, 0, 9, 3, 2, 6, 14, 1, 7, 0, 6, 0, 5, 0, 5, 3, 2, 7, 14, 1, 7, 0, 7, 0, 5, 0, 5, 3, 2, 8, 14, 1, 7, 0, 8, 0, 5, 0, 5, 3, 2, 9, 14, 1, 8, 0, 6, 0, 5, 0, 5, 3, 2, 10, 14, 1, 8, 0, 7, 0, 5, 0, 5, 3, 2
, 11, 14, 1, 8, 0, 8, 0, 5, 0, 5, 3, 2, 12, 14, 1, 9, 0, 6, 0, 5, 0, 5, 3, 2, 13, 14, 1, 9, 0, 7, 0, 5, 0, 5, 3, 2, 5, 4, 1, 9, 0, 8, 0, 5, 0, 5, 3, 2, 5, 5, 1, 10, 0, 5, 0, 5, 0, 6, 3, 2, 5, 6, 1, 10, 0, 7, 0, 5, 0, 5, 3, 2,
5, 7, 1, 10, 0, 8, 0, 5, 0, 6, 3, 2, 5, 8, 1, 11, 0, 5, 0, 5, 0, 9, 3, 2, 5, 9, 1, 12, 0, 5, 0, 5, 0, 9, 3, 2, 5, 10, 1, 13, 0, 5, 0, 5, 0, 9, 3, 2
};
const char item[] PROGMEM = {".item"};
const char span[] PROGMEM = {"span "};
const char gridArea[] PROGMEM = {"grid-area:"};
const char* const string_table[] PROGMEM = {item, span, gridArea};
char gridChar;
char buffer[20];
void setup() {
Serial.begin(9600);
}
void loop() {
for (int a = 0; a < 16; a++) {
String table;
int c = 0;
c = a;
c *= 12;
for (int b = 0; b < 12; b++) {
//this is looped through 16 times to go through the whole of index[] array
int d = c + b;
if (b == 0) {
strcpy_P(buffer, (char*)pgm_read_word(&(string_table[0])));
table += buffer;
}
if (b == 3) {
strcpy_P(buffer, (char*)pgm_read_word(&(string_table[2])));
table += buffer;
}
int number = pgm_read_word_near(index + d);
gridChar = pgm_read_byte_near(gridParts + number);
table += gridChar;
if (b == 6 || b == 8) {
strcpy_P(buffer, (char*)pgm_read_word(&(string_table[1])));
table += buffer;
}
delay(100);
}
Serial.println(table);
}
while (1);
//.item1 {grid-area:1/1/span 2/span 5;}
//through to
//.item16{grid-area:9/1/span 1/span 5;}
}