Sorry Im not very proficient at programming and I am having a hard time reading through the SmartMatrix code to determine what data type matrix_name is so I can declare pointer to it.
Sorry again I am probably not even asking the questions correctly.
It’s not something easy to do. I just had to work out the details. This code added to the Bitmaps example compiles but I didn’t actually test if it works.
There’s only one example I know of that uses a Layer through a pointer, it’s different for the background GFX Layer, and also different for the old Layers.
It inherits from class SM_Layer so if you want to use a more generic pointer that can be used for different layer types you can use SM_Layer and recast if needed instead.