How to cast char=2 to char="2" ?
i need it to send via uart, but when im trying to send char as 2 i get nothing, but when i send as "2" i get 2
The point is, i have
int s=2;
and i need to write it to char as "2" not 2. i tried a few ways but always failure. when char = 2 message in terminal is just empty, when char is signed as "2" it works fine. When i tries to convert int to char , char was always signed as 2, i can't just send int via uart becouse block sending function needs pointer.