Home>

The title may be a little wrong,

Press the button to go to the second screen and return to the original screen after 5 seconds. Press the button again to go to the second screen. After 5 seconds, the screen returns to the original screen. I would like to make a program or screen transition like this.
Ultimately, I would like to make screen transitions by data acquired via Bluetooth. For example, if you get the data '1', go to the screen of 1. After 5 seconds, return to the original screen. If i get '2', it will be on the screen of 2.

As a preliminary step to that, I am making something that uses buttons, but when I press the button, the screen changes. However, I would like to hear more about it because the second screen does not return to the original screen.

In the previous question, the screen transition after 5 seconds was also made, so why does the above result not occur?
I would like you to tell me.