Hi Danish,
Just wondering if you're covered with Cream Cheese. Mmmmmmm.
The BUTTON command will never time out because B0 is getting reset to 0 on every loop. It will never reach a full count. Try putting the B0 = 0 outside the loop, something like this.
Code:
B0=0
loop:
BUTTON 1,1,254,0,B0,1,ButttonPressed
TOGGLE 0
PAUSE 500
GOTO LOOP
ButttonPressed:
' ... code here ...
goto loop
ADDED: I should probably mention that the PAUSE 500 with a BUTTON delay of 254 will mean you'll have to hold the button down for 128 seconds before it will jump to the Button pressed routine. So a smaller delay or pause will be needed.<br>
Bookmarks