This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Thursday, July 19, 2007

[oopic] Re: Question about serial communication

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

__._,_.___
Recent Activity
Visit Your Group
SPONSORED LINKS
Yahoo! News

Get it all here

Breaking news to

entertainment news

Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Moderator Central

An online resource

for moderators

of Yahoo! Groups.

.

__,_._,___

No comments: