ascii to serial port out
ion
Posts: 101
Hi,
I have a variable word
I put the value = 1234
I would like to send it out to the serial port to a serial printer. The printer take only ascii characters as valid input.
How i can send each digit to the port converted in his ascii value
my printer is looking for a string like that
31 32 33 34
Thank you
Ion
I have a variable word
I put the value = 1234
I would like to send it out to the serial port to a serial printer. The printer take only ascii characters as valid input.
How i can send each digit to the port converted in his ascii value
my printer is looking for a string like that
31 32 33 34
Thank you
Ion
Comments
Where Pin is the Stamp I/O pin number, and Baud is a valid baud rate value for your device.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Ion