Okay, here goes....


Results 1 to 5 of 5

Threaded View

  1. #4
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by lefthandsh8k
    ... problem I'm having seems to begin with the definition of variables...
    Quote Originally Posted by BobK
    ...I'm sure later today there will be someone that might possibly be able to convert the program for you back to PicBasic
    Shawn, here is an explanation for the question you asked (not the entire code):

    With PBP, you get to pick your variable names and determine their size. In PB a bunch of the variable names are predefined as B0, B1, B2, W0, W1, etc. (read section 4.6 of the PB manual for sure). Converting the definition of variables of your program ....
    Code:
    Symbol v1 = B0  'see section 4.7 for Symbol explanation
    Symbol v2 = B1
    Symbol s1 = B2
    Symbol rv = B3
    Symbol s2 = W2
    Symbol ct = B6
    s1 = 150
    rv = 10
    Also note that the Port pins have been predefined in PB (section 4.6 again). For example, instead of using
    Code:
    PortB.2
    like you can in PBP, PB makes you use
    Code:
    Pin2
    (instead).

    If I were you, I would first try and blink some LEDs before trying to convert your program. There also are a bunch of example programs for PB the MELAB website.

    Good Luck,
    Last edited by paul borgmeier; - 20th August 2006 at 08:57.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

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