#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#define TFT_DC 2
#define TFT_CS 3
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, STM32!");
tft.begin();
tft.setCursor(20, 800);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(3);
tft.println("Hello STM32");
// tft.setCursor(20, 160);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(3);
tft.setCursor(50, 150);
tft.println("Welcome");
tft.setCursor(100, 190);
tft.println("to");
tft.setCursor(90, 230);
tft.println("SPI");
tft.setCursor(2, 260);
tft.println("Communication");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}
Loading
st-nucleo-c031c6
st-nucleo-c031c6
Loading
ili9341-cap-touch
ili9341-cap-touch