How do I print a float or an int with a label (I understand this is the default object for displaying text)? Is this functionality not build in to the library?
On my Teensy display library I just call display.print(float1,1);
On LVGL I’ve seen a suggestions to use sprintf but I tried it and it didn’t seem to work.
I’ve been through documentation a number of times but can’t understand how to do this.
@embeddedt thank you!
Is there a way to fix the position of the print to the decimal point? or will I have to do that manually by changing the position of the object based on the number of characters being printed? Or maybe just align the whole object to the right?
I think our printf implementation supports padding the output string with spaces; that may help? I’m not sure how you would line up the decimal points though.