Monday, March 17, 2008

[oopic] Re: oSerialL and oLCDSE

> OK. Point made.
>
> Now, does anyone have some routines that will convert various numeric
> data types into their ASCII string representations? And a string is a
> null-terminated array of char. That should be possible to implement
> even if it isn't treated properly within the language itself. I can
> clock that out to the serial LCD one character at a time without too
> much trouble. After all, I am not trying to build a full-on terminal,
> just a way to display some simple information.

Str$(somevalue) as described in Chapter 13 - Strings of the ooPIC
Programmer's Guide.

I THINK the oSerialL will work with a string although it isn't
documented. oSerialH does have a sample program for strings.


Dim MySerial as oSerialL

sub main()

MySerial.Baud = cv2400
MySerial.Operate = cvTrye
MySerial.Value = STR$(1234)
MySerial.Value = 13
MySerial.Value = 10

end sub

Richard

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/oopic/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

No comments:

Post a Comment