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

ST7789 x240 does not display - SOLVED #116

Open
RecepAGulec opened this issue Dec 1, 2024 · 6 comments
Open

ST7789 x240 does not display - SOLVED #116

RecepAGulec opened this issue Dec 1, 2024 · 6 comments

Comments

@RecepAGulec
Copy link

Hi,
I have an ST7789 display without CS and MISO pins. (240x240). I tested it on 8266 and it works. But it doesn't work with yoRadio. I also tried it as "CS 255" in myoptions.h file.
Is there another setting item for this display that I don't know about?

@e2002
Copy link
Owner

e2002 commented Dec 1, 2024

https://github.com/e2002/yoradio/wiki/Available-display-models#2-dsp_st7789_240

ST7789 requires further development when used in conjunction with the VS1053 module
See the link https://www.instructables.com/Adding-CS-Pin-to-13-LCD/

@RecepAGulec
Copy link
Author

You stated that "the ST7789 needs further development when used with the VS1053 module."
I use the PCM5102, not the VS1053 module.
Is it absolutely necessary to add CS to the ST7789 display?

@e2002
Copy link
Owner

e2002 commented Dec 1, 2024

The Adafruit-ST7735 library comes with an example called graphicstest_st7789
https://github.com/adafruit/Adafruit-ST7735-Library/tree/master/examples/graphicstest_st7789
Does it work with your display?

@RecepAGulec
Copy link
Author

The sketch located at https://github.com/adafruit/Adafruit-ST7735-Library/tree/master/examples/graphicstest_st7789 did not work on my ST7789 display.
However, Adafruit's sketch, adapted only to ESP8266 and available at https://simple-circuit.com/esp8266-nodemcu-st7789-tft-ips-display/, worked perfectly.

@e2002
Copy link
Owner

e2002 commented Dec 2, 2024

The project uses the Adafruit-ST7735 library to work with the ST7789 display.
If the example provided with the library does not work, it will not work in the project either.
Please double-check that the display is connected correctly and ensure that the example from the library runs successfully.
If this does not help, modify the CS pin as described in the link above.
Unfortunately, this is all the assistance I can provide.

@RecepAGulec
Copy link
Author

I finally managed to get it working.
Here are the changes I made to the displayST7789.cpp file:
#define DEF_SPI_FREQ 0
init(240, 240, SPI_MODE2);

I also set the Reset pin to 12.
Thank you very much for your assistance.

@RecepAGulec RecepAGulec changed the title ST7789 x240 does not display ST7789 x240 does not display - SOLVED Dec 3, 2024
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