#include <Adafruit_ILI9341.h>

#define TFT_CS   9
#define TFT_DC   10
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);

#define WIDTH 320
#define HEIGHT 240

void setup(void) {
  tft.begin();
  tft.setRotation(1);
}

void loop() {
  for (int y = 0; y < HEIGHT; y++) {
    for (int x = 0; x < WIDTH; x++) {
      tft.drawPixel(x, y, x * y);
    }
  }
}