I'm attempting to learn about state machines (fsm) and encountering some difficulties. I'm not the brightest bulb in the pack so I know someone here can direct me!

Here is what I want to do:

Using the Emic2 speech board alongside a teensy 3.6 and/or 3.2 (audio shield optional and I also have a prop shield)...I have 10 different modes & 10 corresponding buttons. I want each button to be a mode. I think the emic code is 'blocking' (recently learned about that...like I said, I'm a noob!) so my efforts have all ended in failure. In fact, I failed at only using two buttons (two states).

I often find myself frustrated when I see LEDs for every example. Maybe my brain just doesn't get it.

I know the forum rules say you should post your code but I've tried a handful of different state machine / task scheduling libraries...I'm not sure which code variation to post. The best (or easiest) library I found so far has been: https://github.com/Makuna/Task

I just don't know how to get the autoRepeat function to work and I'm super frustrated with myself. I know it's probably real life stuff getting in the way of my learning (husband just had a heart valve replacement, flying on the 6th and lost my ID)....but I was hoping to figure all this out before April 6th.

In summary, I would have 10 buttons that are associated with 10 different functions -- all functions utilize the emic2 board but in different ways. So, let's say I press button1 and I want it to auto repeat the function associated with it until I push another button...let's say, button2 which will stop the function associated with button1 and start the function associated with button2 (which is also AutoRepeated).

Anyone have any pointers? Some links for me to study?

I have looked at the libraries but because I'm fresh off the boat...I'm struggling (super sleep deprived too). Yet I don't want to cheat...I want to learn! I would love any resources, links, insight anyone has.

Here is what I have equipment wise: Two Teensy 3.6 (also have a 3.2 with Audio shield and a bunch of emic2 boards)....I also have an extra audio shield and prop shield. I have other things in mind but until I figure out how to do a finite state machine with buttons (I have 10), I can't entertain further. First things first, right?

Speaking of which...Paul, if you should see this post -- another big thanks for putting the ST7789_t3 library out there. I got it up and running!