BOE-bot control with P.I.N.K
HI...guys....can any one tell me....how one can acess..variables. in PINK module...continiously by BS2( with BOE_BOT)....
the code i used goes like this(in format...not actual syntax)
TX PIN 14
RX PIN 15
BAUD CON 396
nbvar VAR byte
main:
Do
SEROUT TX, Baud, [noparse][[/noparse]"!NB0R01"]
SERIN RX, Baud,[noparse][[/noparse]nbvar]
if nbvar=1 then HIGH 12
if nbvar=0 then LOW 12
LOOP
END
guys...i connected...an LED to pin 12...the problem is that....BS2 repeatedly reads values...from the P.I.N.K but....does not executes the IF conditions.....
plzzzzz do help me..its urgent
the code i used goes like this(in format...not actual syntax)
TX PIN 14
RX PIN 15
BAUD CON 396
nbvar VAR byte
main:
Do
SEROUT TX, Baud, [noparse][[/noparse]"!NB0R01"]
SERIN RX, Baud,[noparse][[/noparse]nbvar]
if nbvar=1 then HIGH 12
if nbvar=0 then LOW 12
LOOP
END
guys...i connected...an LED to pin 12...the problem is that....BS2 repeatedly reads values...from the P.I.N.K but....does not executes the IF conditions.....
plzzzzz do help me..its urgent
![jumpin.gif](http://forums.parallax.com/images/smilies/jumpin.gif)
Comments
IF nbvar = “1” THEN HIGH 12
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support