8 years, 9 months ago.

Usage with STM32F429I Discovery

I'm attempting to use this library for my STM32F429I DISCO platform using mbed. I am having a bit of trouble since the RESET pin on the LCD is hardwired to the MCU NRST pin. Not sure what I should set this for when calling the constructor.

SPI_TFT_ILI9341

#include "stdio.h"
#include "mbed.h"
#include "SPI_TFT_ILI9341.h"
#include "string"
#include "Arial12x12.h"
#include "Arial24x23.h"

SPI_TFT_ILI9341 TFT(PF_09, 
                    PF_08, 
                    PF_7, 
                    PC_2, 
                    NRST,    // <<< Error
                    PD_13,
                    "TFT"); // mosi, miso, sclk, cs, reset, dc

Question relating to:

Lib for the new LCD Display with ILI9341 controller

I just picked a random unused pin and its working.

posted by Edward Januska 06 Feb 2016

You could also try "NC" as the reset pinname (not connected). Depending on the library version or implementation that should work, but it might also crash. In case of crash, just go back to the unused pin.

posted by Wim Huiskamp 06 Feb 2016
Be the first to answer this question.