#include <stdlib.h>
int i;
//TIP 1
itoa(buff, i, 10); // Convert number into string.
printf("%s\r\n",buff); // Check the altered data with Serial.
writelcd(0,0,buff); // Samples that distribute altered data to lcd.
// TIP 2
sprintf(buff,"%d",i); // Convert number into string.
printf("%s\r\n",buff); // Check the altered data with Serial.
writelcd(0,0,buff); // Samples that distribute altered data to lcd.