Sep-26-2020, 06:25 PM
I have a string that a user enters from input()....I would like to concatenate it with '\r' (0x0D) <CR> character so that it goes out on the uart bus as such.....
c = c + '\r'
If I print© before and after I get the same thing. How do I do this such that I don't get two different characters \, r on the UART port?
I have tried c =c + '\\r' but this does NOT yield the <CR> 0x06 on the UART.....
thanks
c = c + '\r'
If I print© before and after I get the same thing. How do I do this such that I don't get two different characters \, r on the UART port?
I have tried c =c + '\\r' but this does NOT yield the <CR> 0x06 on the UART.....
thanks