Print % into label
-
Hi folks
How is it possible to print "%" into a label or onto lcd display.
If I do so, everytime i get "%" on the display (see the slash in front of it)What do I wrong?
Best regards
Thomas -
It requires a bit of playing around but it is possible, I'm just struggling to find the example I made.
Ok found it, I had posted the example on my pinterest page.
What I did was to use the a message box to hold the Humidity: text, you can use this box for just the % and then use text join (concat) and then a convert to string block with the value you want to be shown next to the % symbol.
-
It is a bug in Uiflow (coding behind is correct)
It works this way:
labelBattery.setText(str((str((power.getBatteryLevel())) + '%'.replace('\', ''))))
instead of
labelBattery.setText(str((str((power.getBatteryLevel())) + '%')))
-
@m5stickfreakler thank your feedback . we will be fix this problem as soon as posible
-
@m5stack said in Print % into label:
@m5stickfreakler thank your feedback . we will be fix this problem as soon as posible
That would be very great. Maybe you can fix also other symbols (like degree °, umlaut and so on --> but there are not in ASCII-Table). These symbols are very often used. ;-)
-
@m5stickfreakler Ok, I will tell the engineer these problem. Thank you