Receipt Printer Programming / SD Card Storage

Hello friends!

I have a receipt printer I was hoping to program to print one of ten comics randomly. I was able to program it to print one but the memory limitations make it impossible to store more than that!

I've used the sketch found on the Adafruit website: here

I have since bought an SD module in hopes of storing the other images on there. I am now at a loss bc I'm realizing that it can't be programmed as the Arduino memory can.

I assumed that there would be a way for me to recall more .h files where the code for the image is held but I can't figure it out!

Does anyone have any idea how to work some magic on this?

Hello!

Hopefully, I can explain this without too much confusion!

As an overview, I am trying to make a machine that when you push a button, the Arduino prints out one of 10 different images on receipt paper.

I was able to get my receipt printer to print one image but because of the way it stores the images, you can only load one image onto the Arduino!

I would love to use an SD card module to store the image code for all 10 images and recall them into the code when needed.

All I really need from you all is to be able to take the original sketch for the receipt printer and instead of storing the adalogo.h on the Arduino, load it from an SD card and I can do the rest.

Picture.ino (2.74 KB)

I've merged your other cross-post @jordaanang.

Cross posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.

Repeated cross posting will result in a suspension from the forum.

In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.