MajicDesigns / MD_Parola

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

Library too big for Adafruit Feather 32u4 #31

Closed tavdog closed 6 years ago

tavdog commented 6 years ago

I need to reduce the size of either MD_Parola or the MAX_72XX libarary by 1372 bytes. Is there a previous version that is smaller? Is there another way to make it just a little bit smaller ?

thanks.

MajicDesigns commented 6 years ago

Couple of things that may help:

  1. There are a number of #defines in the Parola header file that allow you to turn off animation groups that you may not be using. Look for #defines ENA_MISC, ENA_WIPE, ENA_SCAN, ENA_SCR_DIA, ENA_OPNCLS, ENA_GROW and ENA_SPRITE.

  2. In the MD_MAX72xx font file, the new version 3+ font definitions allow for smaller font files if you are only using a subset of the ASCII characters. You can set a start and end ASCII code for the font file. See the MD_MAX72xx doc or the header file for a description of the font file. You will need to edit the first line of the font data and change the number of table entries to match the definition. Removing the characters with code > 127 could get quite a bit of flash RAM back.

tavdog commented 6 years ago

Thank you so much. I'll try it.