And you REALLY want to use oSerialPort to gain the advantage of a 4
character buffer. Otherwise, your code has to be waiting on every
char that comes along. That precludes it doing something useful; like
controlling a 'bot.
You could also read Chapter 16 of the Programmer's Guide and try using
the SCP protocol. This is the very best way to change the value of an
object via a serial connection with the PC. There's no programming
required on the OOPic, the values are just changed by magic. Of
course, your program needs to be able to recognize the changes but
that is a lot easier than trying to get serial communications to work.
In some cases, there is no code required. Just the fact that a value
changed will cause a servo to move to a new position. Same with PWM
and most of the other objects.
Richard
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
No comments:
Post a Comment