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

Support for displays without DC pin? #79

Open
Rajssss opened this issue Jun 27, 2021 · 10 comments
Open

Support for displays without DC pin? #79

Rajssss opened this issue Jun 27, 2021 · 10 comments

Comments

@Rajssss
Copy link
Contributor

Rajssss commented Jun 27, 2021

In menuconfig, there is a option to enable or disable the DC. However I beleive none of the drivers implemented it. Having such functionality will improve the usability of the driver, saving one more pin, and support Displays modules with no DC pin exposed.
Even though, I had hard time finding a driver which works without a DC pin, but found some hints to a 9-Bit SPI mode?

@C47D
Copy link
Collaborator

C47D commented Jun 30, 2021

Hi,

I think you have the ST7735S display, isn't? Can you test this branch? https://github.com/lvgl/lvgl_esp32_drivers/tree/feat/support_no_dc

If this works we could start adding support on all other drivers.

@Rajssss
Copy link
Contributor Author

Rajssss commented Jun 30, 2021

I will and let you know.

@C47D
Copy link
Collaborator

C47D commented Jun 30, 2021

The changes in that branch doesn't take into account the fact that the DC signal tells the display if the bytes it's getting from the MCU are a command or data.

@Rajssss
Copy link
Contributor Author

Rajssss commented Jul 1, 2021

@C47D sorry it isn't working, getting garbage on the screen.

@C47D
Copy link
Collaborator

C47D commented Jul 1, 2021

I guess that's expected, the DC signals lets the display know if the data is a data or a command, what display are you working on? Could you share me an image of the connection?

@Rajssss
Copy link
Contributor Author

Rajssss commented Jul 2, 2021

I guess that's expected, the DC signals lets the display know if the data is a data or a command, what display are you working on? Could you share me an image of the connection?

Yes, but with DC pin selected it works fine as expected.
Here the display I have: http://www.lcdwiki.com/1.44inch_SPI_Module_ST7735S_SKU:MSP1443
And this is the pinout I am using.

photo_2021-07-02_08-40-18
Screenshot_2021-07-02_08-41-36

@C47D
Copy link
Collaborator

C47D commented Jul 2, 2021

You just answered it, the display needs the DC signal to work, you can't use it without it.

@Rajssss
Copy link
Contributor Author

Rajssss commented Jul 2, 2021

You just answered it, the display needs the DC signal to work, you can't use it without it.

I don't get it. Are you saying that the display I have can not work without the DC pin? exactly what I am trying to achieve?
And is it because the DC pin is exposed in the module?

@C47D
Copy link
Collaborator

C47D commented Jul 7, 2021

I don't get it. Are you saying that the display I have can not work without the DC pin?

Yes, I think so, your project works with the DC signal and it doesn't work without it.

And is it because the DC pin is exposed in the module?

Yes.

The only displays I think work without DC signal are the I2C based ones.

@Rajssss
Copy link
Contributor Author

Rajssss commented Jul 7, 2021

I don't get it. Are you saying that the display I have can not work without the DC pin?

Yes, I think so, your project works with the DC signal and it doesn't work without it.

And is it because the DC pin is exposed in the module?

Yes.

The only displays I think work without DC signal are the I2C based ones.

Unfortunately, I don't have one. maybe in future someone will test it.
I have found a thread on a display without DC pin exposed, using 9Bit SPI but for ILI9341, can you take a look?
https://forum.arduino.cc/t/how-to-wire-ili9341-in-spi-without-d-c-pin/

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

2 participants