I got the display to run all right on an Arduino UNO using the supplied code in the article on the display.
I'm trying to get it to run on an ESP32 device and can't get it to run.
I think I have the pinouts wrong, but don't know.
I'm using the default SPI pins on the ESP32.
Has anyone got the display to run on an ESP32?
If you have maybe you can tell me where the display pins go.
Thanks.
280x240 IPS TFT Display and ESP32
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: 280x240 IPS TFT Display and ESP32
Which specific EPS32 board are you using?
- TonyATS
- Posts: 11
- Joined: Wed Oct 01, 2014 11:37 am
Re: 280x240 IPS TFT Display and ESP32
I'm using an ESP32-WROVER-E
- TonyATS
- Posts: 11
- Joined: Wed Oct 01, 2014 11:37 am
Re: 280x240 IPS TFT Display and ESP32
I'm using the default SPI pins on the ESP32.
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: 280x240 IPS TFT Display and ESP32
The ESP32-WROVER-E is a module. What actual board are you using? Can you link to its produce page?
- TonyATS
- Posts: 11
- Joined: Wed Oct 01, 2014 11:37 am
Re: 280x240 IPS TFT Display and ESP32
Is this what you are asking for?
ESPRESSIF SYSTEMS ESP32-DevKitC-VE Development Board
ESPRESSIF SYSTEMS ESP32-DevKitC-VE Development Board
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: 280x240 IPS TFT Display and ESP32
Yep. So you have one of these boards:
https://docs.espressif.com/projects/esp ... vkitc.html
and one of these displays:
https://www.adafruit.com/product/5206
and are trying to run the code example from here:
https://learn.adafruit.com/adafruit-1-6 ... iring-test
Is that correct?
Which specific pins are you connected to on dev board? Which ones are you calling the "default" SPI pins?
https://docs.espressif.com/projects/esp ... vkitc.html
and one of these displays:
https://www.adafruit.com/product/5206
and are trying to run the code example from here:
https://learn.adafruit.com/adafruit-1-6 ... iring-test
Is that correct?
Which specific pins are you connected to on dev board? Which ones are you calling the "default" SPI pins?
- TonyATS
- Posts: 11
- Joined: Wed Oct 01, 2014 11:37 am
Re: 280x240 IPS TFT Display and ESP32
Yes, yes, and yes.
* ESP32 default SPI pins
* Display pins ESP32 PINS
* 1 V+ 3-5v 5V Red
* 2 3v BackLight IO4 Yel
* 3 G GND GND Blk
*
* 4 CK SCK SPI Clock IO18 Brn
* 5 SO SPI MISO ----
* 6 SI SPI MOSI IO19 Orn
* 7 TC TCS SPI Chip Select IO5 Blu
* 8 RT RST Reset IO23 Pur
* 9 DC SPI Data/Command IO16 Wht
*
* 10 CC SD Card ----
* 11 BL Unused ----
Thanks.
* ESP32 default SPI pins
* Display pins ESP32 PINS
* 1 V+ 3-5v 5V Red
* 2 3v BackLight IO4 Yel
* 3 G GND GND Blk
*
* 4 CK SCK SPI Clock IO18 Brn
* 5 SO SPI MISO ----
* 6 SI SPI MOSI IO19 Orn
* 7 TC TCS SPI Chip Select IO5 Blu
* 8 RT RST Reset IO23 Pur
* 9 DC SPI Data/Command IO16 Wht
*
* 10 CC SD Card ----
* 11 BL Unused ----
Thanks.
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: 280x240 IPS TFT Display and ESP32
IO19 is VSPI_MISO.* 6 SI SPI MOSI IO19 Orn
MOSI should connect to MOSI on both ends. Try changing that pin to IO23 VSPI_MOSI.
- TonyATS
- Posts: 11
- Joined: Wed Oct 01, 2014 11:37 am
Re: 280x240 IPS TFT Display and ESP32
Sorry, I can't try that right now, a Windows 10 update this morning completely wrecked the computer this work was on; lost almost everything. Have to completely reinstall Windows.
In the mean time maybe you can answer these two questions:
What pin does the reset pin connect to? The program I was trying to get to work, a watch face, used the GPIO23 pin.
What library should I be using for use with an ESP32? An Adafruit library?
Thanks very much.
In the mean time maybe you can answer these two questions:
What pin does the reset pin connect to? The program I was trying to get to work, a watch face, used the GPIO23 pin.
What library should I be using for use with an ESP32? An Adafruit library?
Thanks very much.
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: 280x240 IPS TFT Display and ESP32
Any available GPIO pin. The pin used must be correctly specified in your Arduino sketch.What pin does the reset pin connect to?
See guide:What library should I be using for use with an ESP32?
https://learn.adafruit.com/adafruit-1-6 ... iring-test
- TonyATS
- Posts: 11
- Joined: Wed Oct 01, 2014 11:37 am
Re: 280x240 IPS TFT Display and ESP32
Sorry so late, had to put in a new SSD and install Windows 10. Took a while.
Of course had to install all the Arduino and ESP32 stuff as well, plus a bunch more stuff.
I finally got the display working with an ESPRESSIF ESP32-WROVER-E board.
Board set to "ESP32 Wrover Module"
I installed these libraries: Adafruit ST7735 and ST7789, SPI, Adafruit Zero DMA, and Adafruit SPIFlash, and SdFat - Adafruit Fork.
Used the Examples graphicstest.
Code for display:
#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_ST7789.h> // Hardware-specific library for ST7789
#include <SPI.h>
//TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST
// Display pin ESP32 Name color
#define TFT_CS 5 // GPIO5 Blu Should go low to select
#define TFT_DC 14 // GPIO14 Wht
#define TFT_MOSI 23 // GPIO23 Orn
#define TFT_SCLK 18 // GPIO18 Brn
#define TFT_RST 15 // GPIO15 Grn
So glad that this works. Now I can go back to my original projects to build a watch.
Thanks for your help.
See you.
Of course had to install all the Arduino and ESP32 stuff as well, plus a bunch more stuff.
I finally got the display working with an ESPRESSIF ESP32-WROVER-E board.
Board set to "ESP32 Wrover Module"
I installed these libraries: Adafruit ST7735 and ST7789, SPI, Adafruit Zero DMA, and Adafruit SPIFlash, and SdFat - Adafruit Fork.
Used the Examples graphicstest.
Code for display:
#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_ST7789.h> // Hardware-specific library for ST7789
#include <SPI.h>
//TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST
// Display pin ESP32 Name color
#define TFT_CS 5 // GPIO5 Blu Should go low to select
#define TFT_DC 14 // GPIO14 Wht
#define TFT_MOSI 23 // GPIO23 Orn
#define TFT_SCLK 18 // GPIO18 Brn
#define TFT_RST 15 // GPIO15 Grn
So glad that this works. Now I can go back to my original projects to build a watch.
Thanks for your help.
See you.
Please be positive and constructive with your questions and comments.