Why does this not work in PicBasic Pro?? I'm using a Pic16f870
for j=0 to 7
portb.j=1
pause 100
portb.j=0
next j
also,
high portb.j
does not work
I get a "Bad Variable Modifier" error at each portb program line
thanks
Why does this not work in PicBasic Pro?? I'm using a Pic16f870
for j=0 to 7
portb.j=1
pause 100
portb.j=0
next j
also,
high portb.j
does not work
I get a "Bad Variable Modifier" error at each portb program line
thanks
this will compile ok....portb[x] and portb(x) compiles ok too, but it does nothing to activate the port.
So I guess the question is, how do you use a variable on a port?
Try this way, it will compile and work as well.So I guess the question is, how do you use a variable on a port?
for j=0 to 7
portb0.[j]=1
pause 100
portb0.[j]=0
next j
Cheers
Al.
All progress began with an idea
Bookmarks