hey,
i like to define some custom chars for my lcd and want to do it in the folllwoing way (that i can interate though the array while writing to the lcd). at the marked position my compiler complains 1st time with the named error.
byte lobster [8][8] = {{
B10000,
B11000,
B01000, // <--- error: expected unqualified-id before '[' toke
B10000,
B00000,
B00111,
B01000,
B11000
},{
B10011,
...
B11111
},{
...
},{
B11101,
...
B00000
}};
the 2nd time is:
byte[8] mirror_cc(in_cc byte[8]) { // <--- error: expected unqualified-id before '[' toke
byte out_cc[8];
for (byte i=0; i<=7; i++) {
byte out_cc[i]=in_cc[7-i];
}
return out_cc;
}
this funktion mirrors the char upside down. at both positions i dont get why its complaining. can you please help me!! thanka a lot
PS: oh yeah and is that call:
for (byte i=0; i<=7; i++) {
lcd.createChar(i, lobster[i]); // <-- ?
}
right? i mean handing over a byte array to the lcd.createChar function.