I am using an adafruit thermal printer, and don't have issues with printing itself, but I want to do something that I know is possible and likely somewhat easy to do, but I don't know how.
The code can be found at the bottom, but in short I want to be able to press a button (I have a 10k resistor and the button) and print out a different short story each time. So, the process should look like this:
User presses button:
short story 1 is printed out (print syntax is shown in pastebin link)
User presses button again:
short story 2 is printed out
User presses button again:
short story 3 is printed out
User presses button again:
short story 1 is printed out
etc. etc.
So, every time a button is pressed it prints out a different story in a loop, so 1 then 2 then 3 then 4 then 1 then 2....
Please let me know if you have any way to do this or know a similar project or resource that I can get help from. It's the adafruit thermal printer. So far, I tried using a bunch of if statements to see when a counter is equal to a value specific to that story, and once that story is printed it raises the value by one. At the end of the list of stories it resets the Counter value to 1. This does not work, as every story is printed at once.