EmbDev.net

Forum: µC & Digital Electronics Using a button for two functions play/pause


von Ya Y. (Company: enseirb) (lichentine)


Rate this post
useful
not useful
Is it possible to use a button (b_center) for two functions , like play 
and pause in a game

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


Rate this post
useful
not useful
Yes it is. Lots of devices do something similar.

For a more detailed discussion I'm missing some information about 
something...

von georg (Guest)


Rate this post
useful
not useful
Pseudocode:
If status == pause then status = play else status = pause

Georg

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.