how can i do this with picbasic pro?


Closed Thread
Results 1 to 3 of 3
  1. #1
    lutherblissett's Avatar
    lutherblissett Guest

    Smile how can i do this with picbasic pro?

    my purpose is:

    button1 go to routine1 or routine2 or routine3(depend of the touches)
    button2 increment variable1,then variable2 and then variable3 inside the corresponding routines(variable1 inside routine1,variable2 inside routine2,variable3 inside routine3).of course the same button increment the three variables,it increment the first,then the second(the first is unchanged)then increment the third(first and second are unchanged).

  2. #2
    Join Date
    May 2004
    Posts
    30


    Did you find this post helpful? Yes | No

    Default

    Yes ! But you need a piece of software !

    Don Mario

  3. #3
    lutherblissett's Avatar
    lutherblissett Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Don Mario
    Yes ! But you need a piece of software !

    Don Mario
    can this work?i'm very confuse.....

    mainloop:
    BUTTON porta.0,1,255,0,B0,1,labels123

    labels123:
    labels=labels+1
    branch labels,[label1,label2,label3]

    label1:
    BUTTON porta.1,1,255,0,B1,1,increment
    variable1=tempvar

    label2:
    BUTTON porta.1,1,255,0,B1,1,increment
    variable2=tempvar

    label3:
    BUTTON porta.1,1,255,0,B1,1,increment
    variable3=tempvar

    increment:
    tempvar=tempvar+1
    goto mainloop

Similar Threads

  1. Conversion from picbasic pro to hex for mplab
    By pr2don in forum Forum Requests
    Replies: 5
    Last Post: - 10th October 2010, 19:53
  2. VB.net and Picbasic Pro
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th November 2007, 20:18
  3. How to configure SPI in PICBASIC PRO?
    By moogle in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 15th April 2007, 18:31
  4. Question for all that use MELABS PICBASIC PRO
    By oskuro in forum Off Topic
    Replies: 2
    Last Post: - 24th March 2005, 17:15
  5. PicBasic Pro & PicBasic syntax different
    By Billyc in forum General
    Replies: 5
    Last Post: - 16th April 2004, 21:19

Members who have read this thread : 1

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