click_here
- Joined Sep 22, 2020
- 548
I think that you'll find that there are multiple ways to debounce an input - some will use a delay and then re-check, some will have a number of loops before re-checking, some will use an average reading over a number of samples, some won't de-bounce at all, some will only change state if 'n' amount of high readings are found, ect...
It is always going to be a solution that fits the architecture of the code and does not cause any errors.
If you want to study a particular state diagram, choose one and give it a go.
If it's the actual diagram structure that you are struggling with, find an online course, like this one, and set aside some time each day to go through it. Note that going through the whole course in one day is a trap for new players - Take your time and soak it in.
It is always going to be a solution that fits the architecture of the code and does not cause any errors.
If you want to study a particular state diagram, choose one and give it a go.
If it's the actual diagram structure that you are struggling with, find an online course, like this one, and set aside some time each day to go through it. Note that going through the whole course in one day is a trap for new players - Take your time and soak it in.



