Thanks for such a fast reply! I tried this and didn't work:
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#define TFT_CS 10
#define TFT_DC 9
#define TFT_RES 8
Adafruit_ILI9341 tft = Adafruit_ILI9341( TFT_CS, TFT_DC, TFT_RES );
void setup() {
Serial.begin( 115200 );
tft.begin();
tft.setRotation( 1 );
tft.fillScreen( ILI9341_RED );
// below works
tft.drawChar( 190, 100, '7' , ILI9341_WHITE, ILI9341_BLACK, 5);
/* below doesn't work
int a=1;
char b[1];
String str;
str=String(a);
str.toCharArray(b,1);
tft.drawChar( 190, 100, b, ILI9341_WHITE, ILI9341_BLACK, 5);
*/
}
void loop() {
}