No the code will not work with Picbasic Pro. I have contacted Rentron and they told me the code is for Picbasic and will not work with Picbasic Pro.
I have contacted the author about the .hex file and have never heard back.
I'm lost here and was just hoping to find someone to help.
Melabs.com
Last edited by HerrBall; - 4th June 2010 at 15:46.
That is weird..
I only have PBP and just tried it. "to many errors"
So we need to do a re-write.
Add this to the top of your code
Not sure why "yf" and the other labels are causing errors, Re-name the labels.Code:INCLUDE "modedefs.bas" B0 var BYTE B1 VAR BYTE
Dave
Always wear safety glasses while programming.
Not sure if this will work but it compiles with PBP.
square brackets in the serout command are used in place of ()
This is the TX code. Should be able to do the same with the RX..
Code:INCLUDE "modedefs.bas" B0 var BYTE B1 VAR BYTE trisb = 134 trisa = 133 portb = 6 porta = 5 low 1 input 0 input 2 start: pot 0,50,B0 pot 2,50,B1 B0 = B0 * 5 B1 = B1 * 5 y: if B0 < 100 then yf if B0 > 150 then yb x: if B1 < 100 then xr if B1 > 150 then xl serout 1,n9600,[5] goto start yf: serout 1,n9600,[2] goto start yb: serout 1,n9600,[1] goto start xl: serout 1,n9600,[3] goto start xr: serout 1,n9600,[4] goto start end
Dave
Always wear safety glasses while programming.
If it works or not I will see but as you say at least now it compiles
I will do the same for the RX code and then program the pics.
Will let you know later(maybe a couple days) if it works or not.
Thank you for your help ( working or not ).
I'm grateful
Herr Ball
If it does not work let us know, we will figure it out.
Dave
Always wear safety glasses while programming.
Bookmarks