I have been dying to get the TFT LCD display working with the ESP32. I have seen that the examples were tested and working with this microcontroller, and was hoping for some more input or documentation on wiring and any alterations that may need to happen to the libraries, both for the display and graphics library.
Also, when tested, were you using the arduino esp32 or vanilla?
Thanks!
ESP32 Documentation for Adafruit_HX8357_Library
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- kc01926
- Posts: 2
- Joined: Thu Mar 23, 2017 1:18 am
- adafruit_support_mike
- Posts: 67391
- Joined: Thu Feb 11, 2010 2:51 pm
Re: ESP32 Documentation for Adafruit_HX8357_Library
I'm afraid there isn't any documentation for the ESP32 yet. It's still in the 'poke it and see how it responds' phase of its product lifecycle.
- kc01926
- Posts: 2
- Joined: Thu Mar 23, 2017 1:18 am
Re: ESP32 Documentation for Adafruit_HX8357_Library
Thanks for the answer! I understand this as I am poking and prodding myself! Are there no instances at all of the wiring though? I know ladyada has gotten it working and that I need to implement the dummy yield, but matching the wiring to the arduino examples has proven challenging. Was wondering if there is a note from the commit that shows successful tests?
- amidg4x4
- Posts: 8
- Joined: Sun Sep 11, 2016 6:53 pm
Re: ESP32 Documentation for Adafruit_HX8357_Library
Depends on the ESP32 board... Every has different pinout. I have made it somehow work on ESP32 Thing by SparkFun.
Display.................ESP32
CLK---------------->18
MISO-------------->19
MOSI--------------->23
CS------------------->2
DC------------------->15
RST------------------>2
You can easily google pinout for most ESP32 boards and figure out these pins in your personal case. DC and RST pins can be almost any. Additionally, you will have to implement HX8357 library for ESP32 board. You will need one more constructor for 6 ports mentioned above. Somebody already did it github.com/adafruit/Adafruit_HX8357_Library
However, it still doesn't work properly. It requires dummy yield() which I cannot figure out, as replacement delays with it doesn't give any difference. CPU's too fast compare to SPI of display, thus it just skips everything. I have found solution on the Internet how to reduce speed of SPI... by defining SPI_CLOCK_DIV_16, but I am still trying to figure it out.
hackaday.com/2016/10/31/whats-new-esp-32-testing-the-arduino-esp32-library/
That would be great, if anybody can give me piece of advice.
Display.................ESP32
CLK---------------->18
MISO-------------->19
MOSI--------------->23
CS------------------->2
DC------------------->15
RST------------------>2
You can easily google pinout for most ESP32 boards and figure out these pins in your personal case. DC and RST pins can be almost any. Additionally, you will have to implement HX8357 library for ESP32 board. You will need one more constructor for 6 ports mentioned above. Somebody already did it github.com/adafruit/Adafruit_HX8357_Library
However, it still doesn't work properly. It requires dummy yield() which I cannot figure out, as replacement delays with it doesn't give any difference. CPU's too fast compare to SPI of display, thus it just skips everything. I have found solution on the Internet how to reduce speed of SPI... by defining SPI_CLOCK_DIV_16, but I am still trying to figure it out.
hackaday.com/2016/10/31/whats-new-esp-32-testing-the-arduino-esp32-library/
That would be great, if anybody can give me piece of advice.
Please be positive and constructive with your questions and comments.