-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
support the IPS 1.3" ST7789 with CS pin to ground? #163
Comments
I have added support for that board. It is a bit odd, but SPI mode 3 must be used when the chip select is not used. Other displays use SPI mode 0 |
Hello,
Thx a lot,
It works perfect!!
Van: Bodmer [mailto:notifications@github.com]
Verzonden: vrijdag 6 juli 2018 19:56
Aan: Bodmer/TFT_eSPI <TFT_eSPI@noreply.github.com>
CC: Nulista <ludo.nulens@pandora.be>; Author <author@noreply.github.com>
Onderwerp: Re: [Bodmer/TFT_eSPI] support the IPS 1.3" ST7789 with CS pin to ground? (#163)
Closed #163 <#163> .
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#163 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AEtn80HHkY0xzA-_l6SCBrRWiLfwc_hAks5uD6SqgaJpZM4UsT_R> . <https://github.com/notifications/beacon/AEtn8yyIKgPHvaI-NGsiN1nDLW3W7Estks5uD6SqgaJpZM4UsT_R.gif>
|
Hello friend could share your library with me? I have the same problem |
The library supports the ST7789 with chip select held low. Use the Setup18_ST7789.h |
I m using Esp 32, is correct? Setup18_ST7789.h #define TFT_MISO 19 |
Comment out the chip select define thus: //#define TFT_CS |
I'm just going to go and try this, well on Monday anyway :) Can I just ask why SPI mode 3 please |
Some displays with the ST7789 controller have CS wired low and these only work with mode 3 for some reason. |
Ok, many thanks for the reply :) |
Does this mean these displays cannot share spi with other devices? |
Yes, one way around this is to add additional circuitry to, for example, block the SPI clock line (SCK) to the TFT when another device is selected. |
Thats a good idea, I was just messing around trying to find some solution. |
A gotcha... The ST7789 is unusual, it is operated in SPI Mode 3, so the SCK line must be driven high when you do not wish to communicate with the TFT, otherwise an extra clock pulse will be introduced and that will mess up the next command. |
I had some other issues with this module, I could not use esp8266 reset, I had to use a IO for rst, and one that did not output on startup, might have something to do with the spi mode3 also |
I think the problem could be:
or:
I always use a pin to drive the reset line on displays that have CS tied low. |
Ah that's a very interesting addition, can I ask how you went about that (cs tap) and what advantages have you found? GGary Rowlands
|
I connected up an ST7789 display to a NodeMCU board and used the RST line as the reset source with the DC line from the display to pin D3 (GPIO 0), when powered up the TFT failed to initialise. Pressing the reset button also failed to initialise the display indicating the issue is not the length of the reset pulse. This leaves spurious SPI clock pulses as a potential culprit. To stabilise the SPI clock line before the software has booted up I added a 10K pullup from VCC (3V3) to the SCK line and the display still failed to initialise. I changed to a 10K pull down on the SCK line and the display ran fine when pressing the reset button, it also booted and ran fine when the NodeMCU is powered up with a DC supply. This setup did fail at startup when plugged into a PC for the first time as soon as the PC enumerates the COM port to the NodeMCU. Moving the TFT DC line to the NodeMCU pin D1 fixed this. This is possibly due to the dual functionality of D3 (GPIO 0) for the ESP8266 during boot. So in summary to use the RST line from the NodeMCU I found:
With this setup the display worked reliably using the hardware RST line. If this also works for you then I am interested to know if this is a general fix for these tied down CS displays. |
I will test, I did have to move dc around on another display I will check a few , ones that do not pulse on boot especially |
I can confirm the sck pulldown works with RST, I am not having an issue with D3 DC but it might be unique to vcc or something, probably wise to avoid it still, I will keep testing it for a bit. I will check other esp boards for RST issues, not just nodemcu in a bit |
Hello Bodmer,
See display in link below (Aliexpress) This display CS pin is always connected to ground.
But is not working with the library. How can i fix it?
thx
Ludo
https://nl.aliexpress.com/item/High-Definition-1-3-Inch-IPS-TFT-Display-IPS-LCD-Screen-1-3-inch-3-3V/32861867084.html?spm=a2g0z.search0104.3.15.7df27bf72ZAASz&ws_ab_test=searchweb0_0,searchweb201602_3_10152_10151_10065_10344_10068_5723115_5722815_10342_10343_10340_5722915_10341_5722615_10696_10084_10083_10618_10304_10307_10820_10821_10302_5722715_10843_10059_100031_10103_10624_10623_10622_5722515_10621_10620,searchweb201603_50,ppcSwitch_5&algo_expid=a77fb30f-beb9-4c7f-a7da-d30685f63fd7-2&algo_pvid=a77fb30f-beb9-4c7f-a7da-d30685f63fd7&priceBeautifyAB=0
The text was updated successfully, but these errors were encountered: