Hi.
I want to asign an global array some values see code at the asciito14segment():
int ch11[] = {0,0,0,0,0,0,1};
int ch12[] = {0,0,0,0,1,0,0};
void setup(){
Serial.begin(9600);
}
void loop(){}
void asciito14segment(){
ch11[] = {1,0,1,0,0,1,1};
ch12 = {0,0,0,1,0,1,1};
}
for the first I get that error:
In function 'void asciito14segment(char, int)':
error: expected primary-expression before ']' token
and for the second:
In function 'void asciito14segment(char, int)':
error: expected primary-expression before '{' toke
Is something like that possible without a loop? Maybe with pointers?
Something like:
void asciito14segment(){
int chtmp[] = {1,0,1,0,0,1,1};
*ch11 = &chtmp[];
}
it didnt work I tryed it. How would it work?
thanks