/*
Simple "Hello World" for ILI9341 LCD
https://wokwi.com/arduino/projects/308024602434470466
https://english.stackexchange.com/questions/20356/origin-of-i-can-haz
*/
#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();
tft.setRotation(1);
tft.setCursor(0, 0);
tft.setTextColor(ILI9341_WHITE);
tft.setTextSize(1);
tft.println("Seja bem-vindo ...");
tft.println();
tft.setCursor(0, 10);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(1);
tft.println("Hello World ...");
tft.println();
delay(3000);
}
void loop() {
tft.fillScreen(ILI9341_BLACK);
tft.setCursor(0, 0);
tft.setTextColor(ILI9341_WHITE);
tft.setTextSize(1);
tft.println("Seja bem-vindo ...");
tft.println();
tft.setCursor(0, 10);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(1);
tft.println("Hello World ...");
tft.println();
delay(3000);
}