-
Notifications
You must be signed in to change notification settings - Fork 1k
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
ILI9486 Screen with ESP32 SPI and Parallel #299
Comments
The compatible RPi displays have a 16 bit serial interface. You have a display with a 16 bit parallel interface which unfortunately is not compatible with the library. |
Thank you very much for your reply! Just in case someone passes by this issue in the future. I managed to to run it using this settings:
The screen is almost blue which is logical since only the first 8 bits are connected. |
Have a look at this thread. |
If you wish to try the pseudo 8 bit mode with the TFT_eSPI library then use: #define PSEUDO_8_BIT in the setup file. I have neot tried it myself, so cannot guarantee it will work. |
Yes the colors are much more realistic now. Thanks again Bodmer! |
dear HumamHelfawi and Bodmer
Working config from this post has DC pin defined, but display does not have one. So which pin on display is DC?
|
No, those SPI connections only connect to the SD card slot. The RS pin has the same function as the DC pin, it is just named differently. |
Thanks Bodmer, as usual You are extremely helpful. Can You advice about RD pin? Such pin marking is not present on this display.. |
DC is sometimes called RS. My board is like http://www.lcdwiki.com/3.5inch_Arduino_Display-UNO and calls it LCD_RS. The datasheet at https://www.waveshare.com/w/upload/7/78/ILI9486_Datasheet.pdf calls it "D/CX". I'm working on an esphome driver for these 8-bit boards, and I'm using DC internally since I can remember "data/command mode". |
Sorry, didn't refresh this page today before answering. RD is "RDX" in the spec, and the diagram on page 9 shows "WRX/SCL" as one input. SCL is the spi clock, so I'd guess your board's "CLK" is where to send the RD signal. |
It looks like the display is write only, so the RD pin can be left unconnected. |
Ok, disregard last post. Seems that |
You should be able to set the colour depth to 1, 4, 8 and 16 bpp, this works OK on my SPI display. I do not have a psuedo16 bit setup to test so maybe it is just that interface that is the problem? |
Thanks Bodmer for Your efforts to help me each time I am writing here with a problem.
I am using Rotated_Sprite_1.ino example with addition of color definitions supporting PSEUDO_16_BIT mode:
I wired display D8-D15 pins as you described here on the other hand same example displays numbers correctly(note: blue line is most probably caused by wiring interference): thanks for advices! |
OK, I just realised that the pseudo 16 bit mode must have been removed at some point. Not sure which version I did this but some earlier versions of TFT_eSPI did have this feature... The problem is that every pixel (except single drawPixel where it does not matter) is being written twice. As the library expects to write 2 x 8 bit values it generates 2 write stobes per pixel. So, what I need to do is reinstate that mode. I will look to see if that is easy to do. |
Thank You so much! |
I have updated the master copy on github with the changes I think are needed, please test. Only the files TFT_eSPI_ESP32.h and TFT_eSPI_ESP32.c have been updated so you do not need to copy the entire library over. |
Yay! I think you are the first user of that feature. Enjoy! |
I will test it extensively, thank You so much! |
Hi, I'm happy to try to help, but note that this is a ticket for the TFT_eSPI which I am not using. If you want to use my esphome code, we should discuss that on the esphome discord or in an esphome issue. Here are my wiring notes:
Then I hacked this esphome fork (of someone else's fork) together: drewp/esphome@c160835 I receive mqtt lines and display them with this esphome code: drewp/homeauto@02c7c33 |
Note that the display used by the OP has NOT got a RD pin, see image posted, so @drewp must have a different display. Check the pinout of the display to see which it is. Post a link or picture of the back of the board to be sure. |
@drewp Thank you so much, I really appreciate your help |
Hi Bodmer, can You advice if antialiased/smooth fonts may be used with good effect with pseudo_16_bit mode? I tried some examples, but font edges are ragged.. Maybe it is a background color blending problem? |
@dinas80 Your display will have a resistance based analogue interface (assuming the screen has this fitted!). The TFT_eSPI library does not provide support for that type of interface. The complication is that the touch interface shares the pins with other TFT screen interface pins! The good news is that a user has created a library for these UNO style displays. See last paragraph of this section. |
@flykarlos Good point, you will not be able to use the smooth fonts as the anti-aliasing will not work. |
Hi Bodmer , i need some help with tft shield uno 2.8 |
Hi,
I have this screen (Driver: ILI9486):
I tried to connect it in parallel as it was decided here #167, I did not get any results.
I connect it using SPI and as it was decibed in Setup11_RPi_touch_ILI9486. I did not get any results.
Is there any other suggestion?
Thank you very much!
The text was updated successfully, but these errors were encountered: