Go Down

Topic: Please update Liquid Crystal lcd.print() description (Read 174 times) previous topic - next topic


  I hope this is the right part of the forum to ask for this...  The LiquidCrystal Library description of lcd.print parameters says that this command can print:

data: the data to print (char, byte, int, long, or string)

It also prints float (apparently since 2009), according to "https://www.arduino.cc/en/Reference/LiquidCrystalPrint", up to 2 decimal places.

Can someone add 'float' to the data parameter list?




This issue was reported 1.5 years ago but unfortunately Arduino has not fixed it yet:

Most of the libraries that have print and println functions inherit from the Print class. Unfortunately there is no documentation for the Print class but the Serial.print(), Serial.println() documentation is probably the best overall reference for the Print class so you can always refer to that. Since that documentation is part of the Arduino Language reference, which is more accessible to corrections/improvements from the community, changes we want to make to that information can be done more easily and quickly (a matter of weeks).

The real solution is to just create some high quality documentation for the Print class and then link to that information from every library that inherits from it. That way we don't have a ton of duplicate content that's a nightmare to maintain. (https://github.com/arduino/Arduino/issues/2581)

Go Up