Output of float variables
Hello.
I get via UART and the SCPI-protocol float variables from another controller. I want to visualize them on the display. As far as I know I can only visualize text on the display. Is there a way to show the float variables on the display or do I have to convert the float to chars?
I used SquareLineStudio to create the visual layout of the display.
Tagged:
Comments
Hello @mathi_kbr ,
To display float variables, you’ll need to convert them into a string format (characters) before showing them. You can use the dtostrf() function in Arduino to convert the float to a character string, then display it on your screen.
@mathi_kbr
Needs to be converted to an array form