So do you remember this book right now?
This book is If I press the start, we're going to go a full rotation and then it's going to stop.
Why is that?
Well, remember, we're not pressing anything right now, so we regret it once.
And it completes a full rotation is going to come back here.
It's going to go to get BOTTEN.
Now, get the button when nothing is pressed is going to return to zero.
So this button is going to be a zero here, which is dependent also on the button is going to be zero,
which will go to default, which will set mode to zero.
See, it's looking the most for me right here, and that's a problem.
OK, let us try to solve this step by step, though.
What should be the solution here in the get button?
I want the return button.
In case none of the buttons is being pressed, what does this mean?
It means that.
After I have pressed the button, no one and it is stored here and this is to rotating at one hundred
milliseconds and it completes the rotation now both is trying to being great again if it has changed
or not.
Well, I'm not pressing anything right now because I pressed it once and that should be enough to keep
rotating at the same speed.
So is one.
No, none of them is a reason for it.
So it will jump here and it will return to me.
Button button is the last thing I have pressed.
Right.
So this will be right here, not changed.
And by that I can keep my rotation at its speed.
No.
Again, the problem is maybe the button is being stored for the last button.
But what about delay time?
Well, delay time is also dependent on a button.
So button is still stored, so I have no problem.
Now, let me start simulation again.
For us, the fastest route and as you can see, it keeps rotating.
Now let's go to the slowest.
As you can see, it's rotating, it's slow, that's make it faster.
And it is faster, let's make it faster and as you can see now, I can move in between all the speeds
without any issue and that's it.
This is how I resolved it.
And by that, we're done with this small project, and as I said, this is not the most efficient way
to check the bottom interrupts is the most efficient way.
But for now at least, this is working.
Please, if you have any question, if you find any confusing in this project, just write me in the
Q&A and I'll be happy to explain it to you or even redo the whole video or even redo some section of
the video if there is some thing that is still ambiguous to you.
I'm here to help, so I'll gladly help you and guide you through in order to understand this project.