/*
Simple "Hello World" for ILI9341 LCD
https://wokwi.com/arduino/projects/308024602434470466
*/
#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);
const char *MESSAGES[] = {
"Hacksaar greets the Next Generation:",
"------------------------------------",
"* 2022 Jonah (Jan & Annabelle)",
"* 2022 Emilia Sophie (Thomas & Anne)"
};
const int MESSAGE_COUNT = sizeof(MESSAGES)/sizeof(char*);
void setup() {
tft.begin();
tft.setTextSize(1);
tft.setTextColor(ILI9341_GREEN);
for (int i =0; i < MESSAGE_COUNT;i++) {
tft.setCursor(20, 20 * (i +1));
tft.println(MESSAGES[i]);
}
}
void loop() {
}