Quote:

just make an own loop for that. but i advise using on_...




adding on_o=show_debug(); before the main() function but after the show_debug() function does nothing. Putting it in the main() function but outside of the while(1) loop crashes the program when the key is pressed...

How would I add another loop outside of the main() while(1) one?

I know I must be missing somthing fundamental here.