arduino - Store array of arrays in array -


it possible store bitmap in array in wiring programing language (arduino)?

boolean trianglemap[display_height][display_width] = { {0,0,0,1,1,0,0,0}, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, {1,1,1,1,1,1,1,1} };  boolean squaremap[display_height][display_width] = { {1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1} };  boolean symbols[] = {trianglemap, squaremap}; 

??? symbols[] = {trianglemap, squaremap};

error: invalid conversion ‘boolean ()[8] {aka unsigned char ()[8]}’ ‘boolean {aka unsigned char}’ [-fpermissive]

i not know whether possible store trianglemap , squaremap bitmap in symbols array?

thanks lot.

you not using correct type.

boolean symbols[] means "i want array of booleans", while want "an array of booleans matrices. this

boolean symbols[][display_height][display_width] = {trianglemap, squaremap}; 

should work


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -