Hi All,

The sketch attached from Dave G6EJD works OK on a Wemos D1 mini.

Cant make this display work on a ProMini, complies OK when “D” removed from pin assigments?

Promini Pin settings

#define TFT_DC  10
#define TFT_CS  12
#define TFT_MOSI 11
#define TFT_RST  -1
#define TFT_CLK  13
#define TFT_LED  3.3v

Any ideas???


G_6EJD_TFT_GPS_WEMOS.ino (10.7 KB)

#define TFT_CS 12

This is not going to work. Your sketch is configured to use hardware SPI, but pin 12 on the Pro Mini is the MISO hardware pin. You can't also use it as CS. This makes me think that not only is your code messed up but your wiring is likely also messed up.

You need to make the following connections:

display | Pro Mini

MOSI | 11
MISO | 12
CLK | 13

You can then connect the display's DC and CS pins to whichever unused pins on your Pro Mini you like. Since there are restrictions on what you can do with pin 10 when using hardware SPI, it is common to use that for CS, but not required. Make sure to update the sketch according to the new DC and CS pins you are using.

You don't use the TFT_MOSI, TFT_CLK, and TFT_LED macros anywhere in your sketch, so you might as well delete those lines of code, since they might cause confusion.

Hi Pert,

Thanks for reply, Yep wiring and sketch were incorrect, amended as per your post.

However screen just flashed :(........ ended up doing a reinstall getting rid of a lot of old stuff, now with just the libraries required.

All now OK