Shop OBEX P1 Docs P2 Docs Learn Events
How do I print ASCII letter rather than decimal value? — Parallax Forums

How do I print ASCII letter rather than decimal value?

Don MDon M Posts: 1,653
edited 2011-08-22 16:01 in Propeller 1
I have this bit of code:
  repeat dinx from 1 to 3
    term.dec(chsetupp[dinx])
    term.tx(32)     

This bit of code receives 3 bytes in and then displays them with a space in between and it will print out the decimal equivalent of the ascii letters. How do I change it to print the actual ascii letter (or number) instead? I'm using full duplex serial plus with PST.

I tried changing it to term.str but that printed nothing.

Thanks.
Don

Comments

Sign In or Register to comment.