|
In lugnet.robotics, Kornel Lambert writes:
> Basically I am looking for a way to SendMessage() to the RCX, and a way to
> receive messages sent by the RCX. The code onboard the RCX is NQC, and
> ideally I would like to use VB+Spirit.ocx to receive messages from the 'bot
> and control it by sending it messages.
The op-code for sending a message is $F7 "set message". Unfortunately somehow
it is left out of spirit.ocx, so you have to go down to the serial protocol in
order to use it. See <http://graphics.stanford.edu/~kekoa/rcx/> for the
details.
If you want to stick to spirit.ocx, you can use SetVar()/Poll() and a global
variable to achieve bi-directional communication between the RCX and the PC.
Cheers,
Hao-yang Wang
|
|
Message is in Reply To:
8 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|