Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: HenrikOlsson; Keyword(s):

Search: Search took 0.02 seconds.

  1. Re: Using same button for entering/exiting some part of code?

    There does not seem to be any debounce on button release. Try

    IF UPBT=0 THEN
    MENUITEM = MENUITEM+1

    IF MENUITEM > 4 THEN MENUITEM = 1
    GOSUB CENTRAL
    ' PAUSE 20 '...
  2. Re: Using same button for entering/exiting some part of code?

    The code I posted should do exactly with that, with the advantage that the section of code you're currently in will continue to run UNTIL you release the button. What you're proposing will HANG the...
  3. Re: Using same button for entering/exiting some part of code?

    You might do something like this:
    Obvioulsy you can't have code that takes a long time to exectute in each section or you'll miss the button press. If that's the case, move the code that handles the...
Results 1 to 3 of 3