2.8 tft seeed print variables

display : http://seeedstudio.com/wiki/2.8''_TFT_Touch_Shield
board : arduino mega

We use the seeed shield tft but we need to display variables. Can anyone give us a hint how we can display by example the valua of a analog-pin value?

example: Tft.draw........???? variables?? ,170,320,2,BLUE);

The drawChar() function can draw a string of text on the device. All that you need to do is provide a string (a NULL terminated array of chars). The sprintf() function bears investigation.

Paul, thanks for your quick reply. Can you give me a example if i have a value from 21.8. So i like to print 21.8? I hope you understand my Englisch.

Can anyone give us a hint how we can display by example the valua of a analog-pin value?

Can you give me a example if i have a value from 21.8.

The output from an analog pin is an integer value. 21.8 is NOT an integer value. The sprintf() implementation on the Arduino does not support floats, but the dtostre() and dtostrf() functions do.

have you any example ?

have you any example ?

Plenty of them. But, what have YOU tried? What research have YOU done?