About serial port display float data

About serial port display float data

The binary digits passed through the serial port will be automatically converted to ascii format in the main display window of the debugging assistant (or click hex to display to display hexadecimal). When sending string data, it will be automatically converted to ASCII format, so the display is correct. Send It is wrong to convert variables similar to uint8 into ascii, it needs to be converted to decimal to be correct, and numbers similar to float format need to be written in the program, send the integer, decimal point, and decimal part respectively, and then convert to get The desired data format. (Personal exploration, learning record use)

Guess you like

Origin blog.csdn.net/Airming1/article/details/115025970
Recommended