AnsweredAssumed Answered

dtostrf function

Question asked by Joseph Grigaliunas on May 31, 2019
Latest reply on Jun 4, 2019 by Con Verse

I am tried to use the dtostrf() function to convert a floating variable to a string array but I am getting the following error  ../source/AdcSdkLcd.c:128:9: warning: implicit declaration of function 'dtostrf'; did you mean 'strstr'? [-Wimplicit-function-declaration].  What should I do to convert a floating variable to a string array?




Using MCUXpresso 10.3.0 IDE

Using Freedom Development Board FRDM-K22F

Trying to display an ADC voltage on a Hitachi 2X16 HD44780U Dot Matrix Liquid Crystal Display Controller/Driver

I am able to display an integer on the LCD with the itoa() function.

The ADC voltage is displaying correctly on the Tera Terminal.