// STM32 Blue Pill SPI LCD Example
// Simulation: https://wokwi.com/projects/374780854731040769
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#define TFT_DC PB7
#define TFT_CS PB6
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
void setup() {
Serial.begin(115200);
Serial.println("Wokwi Blue Pill SPI Demo Starting...");
tft.begin();
tft.setCursor(36, 120);
tft.setTextColor(ILI9341_CYAN);
tft.setTextSize(3);
tft.println("Blue Pill");
tft.setCursor(60, 160);
tft.setTextColor(ILI9341_GREEN);
tft.setTextSize(4);
tft.println("STM32");
}
void loop() {
delay(10);
}
Loading
stm32-bluepill
stm32-bluepill