MajicDesigns / MD_Parola

Library for modular scrolling LED matrix text displays
GNU Lesser General Public License v2.1
428 stars 135 forks source link

displayText, Pause overflow #90

Closed WonderCRM closed 2 years ago

WonderCRM commented 2 years ago

Hello, in MD_Parola.h :: 1459 inline void displayText(const char *pText, textPosition_t align, uint16_t speed, uint16_t pause, textEffect_t effectIn, textEffect_t effectOut = PA_NO_EFFECT) In method, uint16_t pause max 65 seconds, please changing type on uint32_t.

and, how i can set numDevices on Setup or Loop, but not in object? MD_Parola(MD_MAX72XX::moduleType_t mod, uint8_t dataPin, uint8_t clkPin, uint8_t csPin, uint8_t numDevices = 1)

MajicDesigns commented 2 years ago

Number of devices can only be changed in the constructor. You can create and destroy (new and delete) objects at run time if you need to change the number of modules.

If you feel you need longer delays then please modify the library yourself - you have all the source code.

WonderCRM commented 2 years ago

Number of devices can only be changed in the constructor. You can create and destroy (new and delete) objects at run time if you need to change the number of modules.

Can you show an example how to create and destroy (new and delete) objects at run time?

MajicDesigns commented 2 years ago

That is just C++. Please refer to a C++ tutorial for this (like this one https://www.programiz.com/cpp-programming/memory-management)