In this activity, you are going to practice with interns and actually you are going to mix two functionalities
interrupts and the cellular communication.
So your challenge is simply to count how many times you press on the budget.
So whenever you press and not when you roll is just when you press the button, it will increase a counter
by one and then you will print this counter with the cell communication.
So in the setup here, you will need to sit and interrupt on the button beam and interrupt will be rising
because here we don't want to check when the button is released, but when the button is just pressed.
So interrupt with rising in the loop.
What you are going to do is you're going to check when the intercept happened, OK, and when the interruption
happens.
So Button pressed, you are going to increase conter plus print on sale.
And note that here, if you're running from the previous lesson, you should not use cellular inside
an interrupt because that's simply not working.
So if you want to bring something when you trigger an interactive function, well, you first have to
put a flag inside that interrupt function and then check for the flag in the look function and then
print something.
OK, if you tried to use to interrupt.
That's not going to work.
All right.
So if you're not sure, but what to do is go back to the previous lessons of this section, OK, what's
the best practices and warnings once again?
And then and we see you in the next lesson for the solution.