Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/13/03 12:56
Read: times


 
#36325 - RE: To choice from the menu
You really need to do some practice with interrupts. Your timing problem is easily fixed using a timer interrupt, your input problem also relies on handling your keyboard interrupt.

Write your algorithm down clearly, and decide at what points user inputs are needed. How do you cancel an action ? How do you start an action ? What bits cannot be interrupted, what can ?

LCD_INITIALISE
GAME INITIALISE
SHOW MESSAGE FOR START
WAIT FOR USER KEY
IF LEGAL KEY THEN PROCESS.
IF NOT LEGAL BEEP SOUNDER.

Write your algorithm in this pseudo-code form for a start , or draw a flow chart.

Steve

List of 5 messages in thread
TopicAuthorDate
To choice from the menu            01/01/70 00:00      
RE: To choice from the menu            01/01/70 00:00      
RE: To choice from the menu            01/01/70 00:00      
RE: To choice from the menu            01/01/70 00:00      
RE: To choice from the menu            01/01/70 00:00      

Back to Subject List