Page 1 of 1
How to print Float number on HD44780?
Posted: Wed Oct 12, 2022 12:02 pm
by Sergejs
I can not find this option. Is it impossible?
Re: How to print Float number on HD44780?
Posted: Wed Oct 12, 2022 12:18 pm
by BenR
Hello,
The easiest way is to convert the float to a string and then print the string.
for example this would convert the float to a string with 2 decimal places.
StrVar = FloatToString$(FloatVar, 2)
Most if not all the LCD components should now have the PrintFloat macro, you might need to do a Help -> Library update and do a full component update to make sure you've got the latest versions of the LCD components.
If not then which specific component are you using and we can look into adding the function.
Re: How to print Float number on HD44780?
Posted: Wed Oct 12, 2022 12:48 pm
by Sergejs
I will try to upgrade database now.
Re: How to print Float number on HD44780?
Posted: Wed Oct 12, 2022 12:56 pm
by Sergejs
Nothing happen. I use component HD47780 via I2C converter with IC PCF8574
Re: How to print Float number on HD44780?
Posted: Wed Oct 12, 2022 2:31 pm
by BenR
Ok, I've been through and added the function for you now.
Please let us know if you have any problems.
Re: How to print Float number on HD44780?
Posted: Thu Oct 13, 2022 8:10 pm
by Sergejs
Now all is good.