In this activity, you're going to practice with the demands of the button and also the time functionalities
to make multiple actions run in parallel.
So this activity should clear any confusion and you will see the nuances of how we use the time functionalities
to demonstrate the button, all to execute an action with a delay.
So your challenge is to execute two actions at the same time.
The first one is to check the state of the button when the button is priced.
And when I'm press, I mean only when it goes from low to high.
OK, not all the time that it's priced.
Just when the state changes from low to high.
That case you are going to toggle energy two and three.
So that's the end on PIN number 11 and PIN number 10 and to toggle the end, it is what you are going
to do is just up on and it's to pull of 83, OK, and then the opposite power of 82 and 83.
So you only power on one at a time.
So whenever you press the button, you change energy to an energy three and a second action is to make
the one blink every let's see once again.
So one thousand millisecond.
OK, and this is completely different from this action is completely different from this action.
OK, we just make the energy one blink.
And then you also check the state of the button to toggle energy to an energy three.
And of course, here you will not use any delay function.
You will use the time functionality to do everything without blocking the program.
All right.
And I will see you in the next.
Listen for the solution.