i/o formatters
Archiver
Posts: 46,084
In a message dated 6/5/2004 3:26:37 PM Eastern Daylight Time,
franksmith512@y... writes:
> I/o formatters are available for the SERIN/OUT, I2, OW, and LCD.
>
> Are they available where else?
>
>
Debug, shiftin/shiftout.
Sid
[noparse][[/noparse]Non-text portions of this message have been removed]
franksmith512@y... writes:
> I/o formatters are available for the SERIN/OUT, I2, OW, and LCD.
>
> Are they available where else?
>
>
Debug, shiftin/shiftout.
Sid
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
I/o formatters are available for the SERIN/OUT, I2, OW, and LCD.
Are they available where else?
I have decimal variables that I wish to convert to strings in
memory. Is there a way to do it?
Could use my LCD, but don't want the code dependent on it. Used to
do that, but then my code would fail if the LCD wasn't functioning.
I know that may sound odd, but those wire connections on the LCDs are
fragile. They have been solid since I resoldered them all.
Thanks,
Frank
>In a message dated 6/5/2004 3:26:37 PM Eastern Daylight Time,
>franksmith512@y... writes:
>
>
>> I/o formatters are available for the SERIN/OUT, I2, OW, and LCD.
>>
>> Are they available where else?
>>
>>
>
>Debug, shiftin/shiftout.
>
>Sid
Sid -
I don't believe SHIFTIN and SHIFTOUT support formatters, but I may be wrong.
Bruce
>[noparse][[/noparse]Non-text portions of this message have been removed]
>
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and Body of the message will be ignored.
>
>Yahoo! Groups Links
>
>
>
>
X VAR Word
SOUP VAR Byte(5)
I VAR Nib
X=54321
FOR I=0 to 4 ' ascii digits to memory array
SOUP(I)=X DIG I + 48
NEXT
FOR I= 4 to 0 ' show ascii memory array
DEBUG SOUP(I)
NEXT
END
The only other one that supports format modifiers is DEBUG, which is
really just a special case of SERIN/OUT.
-- Tracy
>Hi Everyone!
>
>I/o formatters are available for the SERIN/OUT, I2, OW, and LCD.
>
>Are they available where else?
>
>I have decimal variables that I wish to convert to strings in
>memory. Is there a way to do it?
>
>Could use my LCD, but don't want the code dependent on it. Used to
>do that, but then my code would fail if the LCD wasn't functioning.
>I know that may sound odd, but those wire connections on the LCDs are
>fragile. They have been solid since I resoldered them all.
>
>Thanks,
>Frank
to stick to.
Frank
BTW,
Am using your stack example. My project now spans all eight
programming banks. I bounce all over the banks with ease!
Yes. I know you have another preference. Just saying thanks. It
really helped my project.
FS
--- In basicstamps@yahoogroups.com, Tracy Allen <tracy@e...> wrote:
> You should look into the DIG operator in the manual or HELP.
>
> X VAR Word
> SOUP VAR Byte(5)
> I VAR Nib
>
> X=54321
>
> FOR I=0 to 4 ' ascii digits to memory array
> SOUP(I)=X DIG I + 48
> NEXT
>
> FOR I= 4 to 0 ' show ascii memory array
> DEBUG SOUP(I)
> NEXT
> END
>
>
> The only other one that supports format modifiers is DEBUG, which
is
> really just a special case of SERIN/OUT.
>
> -- Tracy
>
>
> >Hi Everyone!
> >
> >I/o formatters are available for the SERIN/OUT, I2, OW, and LCD.
> >
> >Are they available where else?
> >
> >I have decimal variables that I wish to convert to strings in
> >memory. Is there a way to do it?
> >
> >Could use my LCD, but don't want the code dependent on it. Used to
> >do that, but then my code would fail if the LCD wasn't
functioning.
> >I know that may sound odd, but those wire connections on the LCDs
are
> >fragile. They have been solid since I resoldered them all.
> >
> >Thanks,
> >Frank
storage. If you convert it to a string ("123") you are now consuming
two extra bytes. The only [noparse][[/noparse]useful] thing you can do with the string is
display it; and since you can do that on-the-fly, why not?
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: franksmith512 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=kt3-2gcgnyXAoTyaBf5XkNn2Hep4Zee70ccLHivXQeLStZ0d3RLuOxmN5lmPHu9NiFFGaA2nV9IXrdzWUhiJ]franksmith512@y...[/url
Sent: Saturday, June 05, 2004 2:02 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] i/o formatters
Hi Everyone!
I/o formatters are available for the SERIN/OUT, I2, OW, and LCD.
Are they available where else?
I have decimal variables that I wish to convert to strings in
memory. Is there a way to do it?
Could use my LCD, but don't want the code dependent on it. Used to
do that, but then my code would fail if the LCD wasn't functioning.
I know that may sound odd, but those wire connections on the LCDs are
fragile. They have been solid since I resoldered them all.
Thanks,
Frank