Time for a new activity to practice with the push button so far, this activity, you can create a new
project here.
A new challenge will be to combine the two components that you have for now, the energy and the push
button, so you will power on the energy only when the button is pressed if the button is priced you
both on the energy, if the button is not priced, the power of the energy.
So you will need, of course, to initialize your components here.
So I advise you to start from the blank page.
Okay.
So you can write all the code from scratch, like here with this empty program.
So you will initialize your component in the loop.
You will need.
So you need a if structure, just like we used previously.
We need the infrastructure to check whether the button is pressed or not.
And then you can decide to take an action which is lower on the energy or power of the entity.
All right.
And I will see you in the next lecture for the solution.