/*
  Happy Birthday für Hanna.
*/

#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"

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

//--------------------------------------------
void setup() {
  tft.begin();
}

//--------------------------------------------
void loop() { 
  tft.setCursor(90, 40);
  tft.setTextColor(random(0xFFFF));
  tft.setTextSize(5);
  tft.println("17");

  tft.setCursor(75, 120);
  tft.setTextColor(random(0xFFFF));
  tft.setTextSize(3);
  tft.println("HAPPY");

  tft.drawPixel( random(240), random(320), random(0xFFFF) );
  delay(200);

  tft.setCursor(50, 180);
  tft.setTextColor(random(0xFFFF));
  tft.setTextSize(3);
  tft.println("BIRTHDAY");

  tft.drawPixel( random(240), random(320), random(0xFFFF) );
  delay(200);

  tft.setCursor(25, 260);
  tft.setTextColor(random(0xFFFF));
  tft.setTextSize(2);
  tft.println("liebe Hanna !!!");

  tft.drawPixel( random(240), random(320), random(0xFFFF) );
  delay(200);
}