[WheelCommander] WC cannot communicate with BasicStamp2SX



I run WC Wizzard, calibrate sucessfully but 
I cannot get this code working with wheel commander, please more help
 
Thx,
Peter
 
'{$STAMP  BS2sx}
' {$PBASIC 2.5}

baud CON 45  ' baud rate 38400

recBytes VAR Byte(4)
RedLed PIN 0
Xmit PIN 6
Rcv PIN 7
Main:
  HIGH RedLed
  PAUSE 500
  DEBUG "starting up", CR
  SEROUT Xmit, baud, ["R", LF]
  SERIN Rcv, baud, [STR recBytes\2]
  IF recBytes(0) <> "a" THEN
    DEBUG "cmd failed to get ack:", recBytes(0), CR
  ELSEIF recBytes(0) = "a" THEN
    DEBUG "cmd OK:", recBytes(0), CR
  ENDIF
  LOW RedLed
  PAUSE 500
  GOTO Main
END


Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.

This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.