// STM32 Nucleo-C031C6 SPI LCD Example
// Simulation: https://wokwi.com/projects/365549388158011393
#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() {
Serial.begin(115200);
Serial.println("Boy Next Do♂r?");
tft.begin();
int b;
for(int a=0;a<10;a++)
{
tft.setCursor(20+a, 120+a);
b = a%3;
if(b==1){tft.setTextColor(ILI9341_RED);}
if(b==2){tft.setTextColor(ILI9341_GREEN);}
if(b==0){tft.setTextColor(ILI9341_BLUE);}
tft.setTextSize(3);
tft.println("Stm32 Project");
}
}
void loop() { delay(10); }