r/ArduinoProjects • • Dec 25 '23

Compressing Bitmaps

Hi everyone!

First time here so I'm not sure how exactly to use this subreddit.

I've been programming on a Nano, soldered onto my PCB for a project. I have a loading screen animation for the project, but the bitmaps for the OLED screen take up the majority of the Arduino's space. They are set in the PROGMEM, but this added with the main code is 117% of its memory. Is there any way I can compress the bitmaps down and use those? I've heard the term RLE thrown around in forums but I have no clue how to use it, so there has to be another way.

Any help would be greatly appreciated. Have a great day!

0 Upvotes

8 comments sorted by

View all comments

1

u/EmielDeBil Dec 26 '23

You can also add an SD card reader or ROM chips to the arduino and control them to expand your memory.

Note that unpacking compressed data will result in more data in memory again, unless you procees it and immeduatejly get rid of it again.

The Arduino is not really made for projects that need more than :2kb. The Arduino mega doubles the RAM, and newer stuff like the esp32 are limitless in comparison to the duino. I would start here.

1

u/thork_the_stork Dec 26 '23

I wish I realised this before hand, but my PCB's already been made/soldered.

But I'll note removing data once used, thank you!