Monday, March 17, 2008

Re: [oopic] oSerialL and oLCDSE

On Mar 17, 2008, at 4:33 AM, Andrew Porrett wrote:

> At 01:59 AM 3/17/2008, Brian Lloyd wrote:
>
>> Has anyone written the equivalent of fprintf? Yes, I can but I don't
>> want to take the time if someone else has.
>
> Actually, I don't think you can. If the compiler doesn't support
> variable arguments and a string / character pointer datatype, how are
> you going to do it?
>
> I'll start writing it, then it's your turn... :)
>
> Function word fprintf(
>
>
> Sorry, that's as far as I got. The V6 compiler wants that "Function"
> keyword, even for C source code, right? Scott couldn't look for
> "byte"/"word" + C identifier + "(" ? Jeebus.

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.

--

Brian Lloyd Granite Bay Montessori
brian AT gbmontessori DOT com 9330 Sierra College Blvd.
+1.916.367.2131 (voice) Roseville, CA 95661, USA

http://www.gbmontessori.com

I fly because it releases my mind from the tyranny of petty things . . .
— Antoine de Saint-Exupéry

PGP key ID: 12095C52A32A1B6C
PGP key fingerprint: 3B1D BA11 4913 3254 B6E0 CC09 1209 5C52 A32A 1B6C


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

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