i want to make the ping pong game on 16*2 lcd.for controlling rackets how code technique works,although i am willing to use interrupt as an input to control rackets because a player can press button any time during the play
i am willing to use interrupt
Please resist the temptation to use interrupts you do not need them and they will do you no good.
Have a look at how the code is organized in Several Things at a Time. It does not use interrupts.
Note how each function runs very briefly and returns to loop() so the next one can be called. None of the functions tries to complete a task in one call. And there may be dozens of calls to a function before it is actually time for it to do anything.
...R
Taufeeq105:
i want to make the ping pong game on 16*2 lcd.for controlling rackets how code technique works,although i am willing to use interrupt as an input to control rackets because a player can press button any time during the play
Obviously you do not have the foggiest idea what an "interrupt" on a microcontroller is.
As Mike points out, this is totally irrelevant to your project, but you really need to start by writing some code to do the basic parts of your project, such as displaying something on your LCD, and post that code here when you need help.