Hello
I am using 4D system screen(lets say some screen) with stm32. And it has inbuilt library function of putstr(). I am taking adc data(voltage) to stm32 and converting it and pushing it into screen. The problem is it does have putCH function but doesnot work if i push number using that but how ever using putstr function it can push string in screen which leaves me to use this function by converting integer (actually float) into string and then use this function to push.
I would be glad if i was able to convert decimal number(float) into string and push it into screen.
but however this code below can at least convert integer into str (without decimal sadly).
char buffer[10];
int x = 3333; //voltage for example
snprintf(buffer, 10, "%d", x);
putstr(buffer); //function that prints str frm Lcd library
HAL_Delay(2000);
the above works for integer.
I tried floating point numbers this way but it doesnot print it. probably my floating point conversion is not correct.
can anyone suggest conversion regarding floating point conversion ?
I would really thank your name if i am able to solve that..