one button-two operations


Results 1 to 14 of 14

Threaded View

  1. #6
    Join Date
    Jun 2006
    Location
    Greece
    Posts
    302


    Did you find this post helpful? Yes | No

    Default

    I have this code in my programm:

    LOOP:
    Button CH,0,255,0,b3,1,UHF 'b3 var BYTE
    Button CH,1,255,0,b3,1,VHF 'CH var PORTB.5
    PAUSE 100
    GoSub POSTING
    GoTo LOOP

    UHF:.................
    .................
    GoTo LOOP

    VHF:.................
    .................
    GoTo LOOP

    I want if push one time the button and release to go to UHF and if push again and release to go to VHF and if push again and release to go to UHF , and so on
    Last edited by savnik; - 16th July 2006 at 08:26.

Similar Threads

  1. Sony SIRC IR Issue
    By Ryan7777 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th August 2015, 08:10
  2. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43
  3. Code check -- button not working
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 2nd March 2006, 22:43
  4. Button Push within 3 second Window
    By Tissy in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 22nd December 2005, 10:06
  5. Button subfunction 16F628
    By Jųan in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th August 2005, 16:44

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts