DCC-EX / EX-Turntable

Turntable-EX is a new feature to control a stepper motor based turntable from DCC++ EX
GNU General Public License v3.0
6 stars 5 forks source link

RAM optimisation #37

Closed peteGSX closed 2 years ago

peteGSX commented 2 years ago

RAM can be optimised with Serial.print(F("Text")) etc.

Also check out the CS code's string formatter.

Lower RAM usage will likely be required to allow for the display option.

peteGSX commented 2 years ago

Posted in the wrong issue:

Starting point: DEBUG: 76.9% (used 1575 bytes from 2048 bytes) No DEBUG: 51.3% (used 1051 bytes from 2048 bytes)

peteGSX commented 2 years ago

All text Serial.prints are now using F(), and have eliminated all uses of (String).

DEBUG: 24.0% (used 491 bytes from 2048 bytes) No DEBUG: 24.0% (used 491 bytes from 2048 bytes)