This may be a stupid question, but since I am quite new to programming anything outside of 1980's BASIC, I am having trouble locating what I need to know.
Basically, I am building a simple LED scrolling text display using an MAX7219 4-in-1 matrix and a Nano. That part is easy, and there is a ton of such projects out there to help you with the code needed for displaying a single message.
My problem is, I want to know how I would code the ability to select the message being displayed, with the messages being pulled from a preset bank, each time a momentary switch is pressed. So, it goes high, move to next message in the list. Reach the end of the list, go back to the first message. Repeat.
You can enter custom messages via serial, Bluetooth, etc. in many examples, but I do not want this, I want to simply have selectable messages contained within the code. No outside connections.
I know it's possible, but have no idea how, I really want to understand how to do this so I can learn as I go. Sadly, with my limited time, it's turning out to be a slower process than I had wished.
Thanks in advance for any help!