Question
St7735 with an STM32F401CCU6
- Hello, I could use your help. I wanted to start a small project where an ST7735 display with an STM32F401CCU6 simply writes text. For some reason, I started with the wrong library, namely Adafruit_ILI9341, which resulted in the first photo. When I finally realized that I was using the wrong library, I switched to Adafruit_ST7735, but here I have the problem that it doesn’t get through the initialization (that’s my assumption). I’ve already tried the different initR variants. I’m happy about any help!
Best regards,
Michael
#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
#define TFT_CS PB10
#define TFT_RST PB0
#define TFT_DC PB1
#define LED_PIN PC13
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
void setup() {
delay(200); // kurz warten, bis das Display Strom hat
pinMode(LED_PIN, OUTPUT);
tft.initR(INITR_BLACKTAB);
tft.fillScreen(ST77XX_RED); // Bildschirm rot füllen
delay(1000);
tft.fillScreen(ST77XX_GREEN); // Bildschirm grün füllen
delay(1000);
tft.fillScreen(ST77XX_BLUE); // Bildschirm blau füllen
}
void loop(){
digitalWrite(LED_PIN, LOW); // LED an (bei STM32 oft invertiert!)
delay(500); // 500 ms warten
digitalWrite(LED_PIN, HIGH); // LED aus
delay(500);
}



