Closed human890209 closed 6 years ago
I initialize all the variables in the Constructor, and the problem is fixed. Example 2 working!
Unrelated, but in your code you do not need to initialise the SPI library. That is done in the MD_MAX72xx library already.
Hi, I want to make the instance defined by dynamic settings, so I try to use a pointer. But nothing will be shown on the screen. I make two simple examples to demonstrate the problem.
Example 1 Normal Way - Working
Example 2 Pointer Way - Display Nothing
I'm not a good coder. Hope someone could tell me why Pointer won't work and How to modify it to make pointer work?