#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define tft_cs 3
#define tft_dc 2
Adafruit_ILI9341 tft=Adafruit_ILI9341(tft_cs, tft_dc);
void setup() {
Serial.begin(115200);
Serial.println("Hello, STM32!");
tft.begin();
tft.setRotation(3);
}
void loop() {
tft.setCursor(20,20);
tft.println("hello");
delay(10); // this speeds up the simulation
}