Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TFT problem #28

Closed
krucho opened this issue Jan 14, 2021 · 8 comments
Closed

TFT problem #28

krucho opened this issue Jan 14, 2021 · 8 comments

Comments

@krucho
Copy link

krucho commented Jan 14, 2021

Hi! I'am using a 2.8 inches 320x240 display, same hardware and wiring of the code here.
I can't see anything on the screen, for testing the hardware I used the original TFT_eSPI library and works as expected. When I tried to replace the library I noticed that there are some differences and the code don't compile.
Any idea on what is happening?
Thanks!

@mstrens
Copy link
Owner

mstrens commented Jan 14, 2021

I made some changes to the library e.g. to add some special characters (for french) and also to (I hope so) improve the handling of the touch screen.
Therefore you do not have to use the original library but the code I provided on github.
Those files have to be installed on your pc using exactly the same directory structure as the one given here (on github); so tft files are in a subdirectory.
When the original library is installed, it could be that there is a conflict with the code I provide (but I do not think so).

If you need more support, you should provide the compilation errors.

@krucho
Copy link
Author

krucho commented Jan 14, 2021

Thanks for your reply! There are no compilation errors when I use your code (and the same directory structure), the problem is the TFT shows nothing. I used the original library examples just for checking the hardware and wiring with success.

@mstrens
Copy link
Owner

mstrens commented Jan 14, 2021

Normally my code works because I am on a cnc forum and it is used by many members.

  1. Are you sure that your wiring is as specified in my readme section.
    It could be that the pins being used are different from the standard lib default.
  2. Some members where not able to run the code because when compiling they where using a wrong ESP32 board. They did not get compilation error but the code was not running (probably because there are some internal conflict between some function). When they tried compiling another board (e.g. wmos lolin32) they run the code successfully.
  3. some members had issues because they tried to use a tft board that did not had the IC used to manage the touchscreen.

@krucho5
Copy link

krucho5 commented Jan 14, 2021

  1. Yes, I'm sure the wiring is ok cause I modified the standard lib in order to use the same pinout as you and the display works.
  2. I will try with another dev board and/or board selection, I'm using a SparkFun ESP32 thing now.
  3. The TFT uses the ILI9341.

To check the wiring and the SPI working, I also used an external SD card and everything went just fine.
As I mentioned, will try with another ESP32. Thanks again.

@mstrens
Copy link
Owner

mstrens commented Jan 14, 2021

I presume you understood me but just for clarity: I do not say that you have to try another dev board but only that you can try to select another board in the arduino IDE.

Please note that the ILI9341 is only to manage the TFT but not the touchscreen.
When the TFT has a touchscreen, it must have a small IC (about 10/16 pins) on the back side.
The same TFT module exists with and without this IC.

@krucho5
Copy link

krucho5 commented Jan 15, 2021

Just another question, which version of the ESP32 package are you using to compile? In the MakerFr tutorial I saw the 1.0.1 version, currently I'm using 1.0.3, I will change it for the next try.

@mstrens
Copy link
Owner

mstrens commented Jan 15, 2021

Î use currently 1.0.4.

@krucho
Copy link
Author

krucho commented Jan 15, 2021

Well, finally the set up is working!
Using an ESP32 Wrover module, I can't make it with the ESP32 Thing.
Thank you for your reply and congratulations for the great work! I will close the issue

@krucho krucho closed this as completed Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants