-
Notifications
You must be signed in to change notification settings - Fork 44
Description
Has this library been tested successfully with STM32 Nucleo boards?
It works fine with an Arduino Nano, but I don't manage to run the examples on a STM32L412KB, which has the same pins. It compiles but nothing happens after loading. even a Serial.println message doesn't show off, which suggests that it fails earlyer.
I tried to declare the pins with Arduino style (9, 10, 11...) and STM style (PA8, PA11, PB5).
Thank you for any help.
#include "SPI.h"
#include "TFT_22_ILI9225.h"
#define TFT_RST PB4 //12
#define TFT_DC PA8 //9
//#define TFT_RS PA8 //9
#define TFT_CS PA11 //10 // SS
#define TFT_SDI PB5 //11 // MOSI
#define TFT_CLK PB3 //13 // SCK
#define TFT_LED 0 // 0 if wired to +5V directly
TFT_22_ILI9225 tft = TFT_22_ILI9225(TFT_RST, TFT_DC, TFT_CS, TFT_LED, TFT_BRIGHTNESS);
void setup() {
Serial.begin(9600);
Serial.println("Setup...");
//#if defined(ESP32)
// hspi.begin();
// tft.begin(hspi);
//#else
// tft.begin();
//#endif
//
// //Orientation paysage
// tft.setOrientation(3);
// tft.clear();
Serial.println("Setup end...");
}