#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);
#define TFT_DC 9
#define TFT_CS 10
#define TFT_MOSI 11
#define TFT_CLK 13
#define TFT_RST 10
#define TFT_MISO 12
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);
void setup() {
Serial.begin(9600);
/*
tft.begin();
tft.setCursor(26, 120);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(3);
tft.println("Hello, TFT!");
tft.setCursor(20, 160);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(2);
tft.println("I can has colors?");
*/
Serial.println("TFT - Initialization");
tft.begin();
tft.fillScreen(ILI9341_BLACK);
// tft.setCursor(0, 0);
//tft.setTextColor(ILI9341_GREEN); tft.setTextSize(3);
//tft.println("Tes TFT");
tft.setTextSize(5);
const int offset_x = 40;
tft.setCursor(offset_x, 0); tft.setTextColor(ILI9341_RED); tft.println("Red");
tft.setCursor(offset_x, 60); tft.setTextColor(ILI9341_GREEN); tft.println("Green");
tft.setCursor(offset_x, 120); tft.setTextColor(ILI9341_BLUE); tft.println("Blue");
tft.setCursor(offset_x, 180); tft.setTextColor(ILI9341_WHITE); tft.println("White");
//
//tft.fillRoundRect(35, 260, 60, 60, 10, ILI9341_RED);
Serial.println("TFT - Done");
Serial.println("Begin Looping");
}
void loop() { }