
Originally Posted by
lefthandsh8k
... problem I'm having seems to begin with the definition of variables...

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 like you can in PBP, PB makes you use (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
__________________
Bookmarks