To initialize i use something like this:
Adafruit_NeoMatrix matrix = Adafruit_NeoMatrix(32,8, PIN, NEO_MATRIX_BOTTOM+NEO_MATRIX_RIGHT+NEO_MATRIX_ROWS+NEO_MATRIX_ZIGZAG+NEO_GRB + NEO_KHZ800);
before setup...
is possible to do during setup?
I mean: i have 3 different matrix to connect to arduino, i want to read something from sd card or eeprom or from gpio and according to what i read initialize the matrix in different way.
is possible to do during setup?
Yes but it is a bit more complex and will not solve your problem.
have 3 different matrix to connect to arduino, i want to read something from sd card or eeprom or from gpio and according to what i read initialize the matrix in different way.
No you can’t do that. Because the compiler needs to know how much memory to reserve at compile time, there is no way it can know what you will read from the SD card.
A way round this might be to reserve the maximum amount of memory you will need and only use a portion of it depending on what you read from the SD card.