/*
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(random(-10, 240-10), random(-10, 320-10));
tft.setTextColor(random(0xFFFF));
tft.setTextSize(random(2, 6));
tft.println("17");
tft.setCursor(random(-10, 240-10), random(-10, 320-10));
tft.setTextColor(random(0xFFFF));
tft.setTextSize(random(2, 6));
tft.println("HAPPY");
delay(200);
tft.setCursor(random(-10, 240-10), random(-10, 320-10));
tft.setTextColor(random(0xFFFF));
tft.setTextSize(random(2, 6));
tft.println("BIRTHDAY");
delay(200);
tft.setCursor(random(-10, 240-10), random(-10, 320-10));
tft.setTextColor(random(0xFFFF));
tft.setTextSize(random(2, 6));
tft.println("liebe Hanna !!!");
delay(200);
if(random(10) == 9) tft.fillScreen(0x0000);
}