A quick check of the manual does not show the square brackets "[ ]" typically used to denote optional parameters; perhaps one might use the same variable on all buttons however- presuming it is initialized to zero before each use.
Code:If Button = pressed then pause 100 'debounce HOLDINGBUTTON: If Button = Pressed then 'still depressed pause 100 'wait for release of button Goto HOLDINGBUTTON Elseif Button = NotPressed Do something EndIf Endif




Bookmarks