I need to send some number sequences to a microcontroller. Here is my function:
void DriveForward()
{
printf("137 0 0 128 0");
}
The micro does not accept ASCII while my function sends as ASCII. I need to send that ASCII string as uint8
. Any idea how can I do the conversion?
In this case, printf
does not print on screen but it directly sends to serial port. And its the only command that sends to serial port, so I need to do some conversion beforehand.