#include <Adafruit_ILI9341.h>
// Adafruit_ILI9341(ss/cs, d/c)
Adafruit_ILI9341 tft = Adafruit_ILI9341(-1, 6);
void setup() {
// put your setup code here, to run once:
// SPI.begin(sck, miso, mosi, ss/cs)
SPI.begin(4, -1, 5, -1); // Init SPI
tft.begin();
tft.setRotation(3);
tft.setCursor(0, 60);
tft.setTextSize(7);
tft.setTextColor(ILI9341_RED);
tft.print("Hola");
tft.setCursor(175, 130);
tft.setTextSize(4);
tft.setTextColor(ILI9341_GREEN);
tft.print("mundo!");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}