This code line won't compile. Why printFloat is offered as an alternative by intellisense ?
WeatherDisplay.ino:68: error: no matching function for call to 'HardwareSerial::printFloat(float&)'
Serial.printFloat(T_outmax);
This code line won't compile. Why printFloat is offered as an alternative by intellisense ?
WeatherDisplay.ino:68: error: no matching function for call to 'HardwareSerial::printFloat(float&)'
Serial.printFloat(T_outmax);
Bacuse as the compiler is telling you there is no such thing!. Check in the reference section!
Mark
IIRC
printFloat() is a private member of the Print Class, a base class of Serial.
jfri:
This code line won't compile. Why printFloat is offered as an alternative by intellisense ?
Don't put so much faith into the keyword highlighting to call it "Intellisense". It's not.
It is just simple keyword matching. Every library has a list of keywords associated with it. The IDE highlights those words if you use that particular library or not.
Serial.printFloat() isn't an Arduino function. However, there's no need to call a funciton to print a float. Serial.print(T_outmax); will work fine, assuming T_outmax is declared as a float.