
Problems with NXT buttons
Hi, people!
I'm new in your community. I'm from Italy, so I'm sorry for my english mistakes. I hope to give you my contribute.
I am recently fond of robotics and I decided to buy a Lego NXT kit. I have a problem with the buttons of the NXT brick trying to run a function to wait for a selected button pressed.
It works only if I want to detect different buttons. If want to detect the same button pressed as it is in the code below, it doesn't work correctly.
After the first
the program pass directly to the first
pressing once the "enter". It should request from the user to press "enter" twice (the same for "left").
I hope I'm enough clear to explain it.