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

Is it possible to read the ID of the screen chip? #127

Closed
guo652917087 opened this issue May 9, 2020 · 3 comments
Closed

Is it possible to read the ID of the screen chip? #127

guo652917087 opened this issue May 9, 2020 · 3 comments

Comments

@guo652917087
Copy link

Hi,
Is it possible to read the ID of the screen chip? No read function is defined.
I use ST7789V2
Why does ST7789V use SPI mode 2?

I modified and modified st7789.c to increase the vertical screen display:

{ST7789_MADCTL, {0x80|0x20}, 1}, // Set to 0x28 if your display is flipped

@C47D
Copy link
Collaborator

C47D commented May 9, 2020

Is it possible to read the ID of the screen chip? No read function is defined.

Right now the display river only uses the MOSI signal, what register do you need to read to get the ID?

I modified and modified st7789.c to increase the vertical screen display:
{ST7789_MADCTL, {0x80|0x20}, 1}, // Set to 0x28 if your display is flipped

Thanks for the code snippet, I will add more display orientation options to the ST7789, I got the IPS 240x240 display to test.

Why does ST7789V use SPI mode 2?

I don't remember to be honest, it worked for me and I leave it like that, it doesn't work for you?

I had been busy updating the code for LVGL v7 and ILI9341 and ILI9488 displays, will work on the ST7789 now that I know you are using it.

@guo652917087
Copy link
Author

guo652917087 commented May 11, 2020

@C47D

Right now the display river only uses the MOSI signal, what register do you need to read to get the ID?

Reply:Now the screen display function is written directly. Can you consider that the "littlevgl" display will have a flower screen (the display is disordered), if I regularly (for example, 3 minutes) compare the content written in and the content read out is the same? Just to be more stable. My idea is that if you read the ST7789V ID (non-zero value), if the reading fails, the chip works abnormally, you need to reset ST7789V and reinitialize.
Because there is no reading function, even if my screen is removed, the program can be executed down.

I don't remember to be honest, it worked for me and I leave it like that, it doesn't work for you?

Reply:It works. I use ST7789V2 (240*320)

@guo652917087
Copy link
Author

No feedback, then I close this issue.

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