-
Is it possible to format a floating point number in u8g2? The u8g2.print command doesn't have any options for printing in any particular format, like say, a floating point number to only one digit after the decimal. It appears to always print two after the decimal point. |
Beta Was this translation helpful? Give feedback.
Answered by
olikraus
Feb 26, 2023
Replies: 1 comment 5 replies
-
U8g2.print is just the same as arduino.print. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
wjgray3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
U8g2.print is just the same as arduino.print.
Use sprintf to do proper formating of floats.