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

Confirming the pin setup #25

Closed
docop opened this issue Jul 11, 2020 · 2 comments
Closed

Confirming the pin setup #25

docop opened this issue Jul 11, 2020 · 2 comments

Comments

@docop
Copy link

docop commented Jul 11, 2020

Hi So i just want to confirm how to do the pin config for the lib. I do have a ST7789 lcd and i see in you config : Lgfx-config-esp-Wrover-kit.hpp this :

static lgfx::Panel_ST7789 panel;
panel.spi_3wire = false;
panel.spi_cs = 22;
panel.spi_dc = 21;
panel.gpio_rst = 18;
panel.gpio_bl = 5;
panel.pwm_ch_bl = 7;

So is this the pin connected from the esp32 to the lcd ? As GPIO 22/21/18/5 .. but for 7 : is it Gpio 26 ? Fow the wrover esp32 normal 30pin version, not the 36pin.
And i think loading the tft-graphictest.ino will load the LovyanGFX.hpp and this call to the Lgfx-config...
And is there a way to force to lcd st7789 or it goes only with an autodetect ?
Thank again

@tobozo
Copy link
Collaborator

tobozo commented Jul 11, 2020

autodetection feature is for the ESP32-Wrover-Kit only since it exists both with ILI9341 and ST7789, but you probably don't need that

this example shows how to configure you own custom display profile directly from the .ino file

@lovyan03
Copy link
Owner

ESP-WROVER-KIT is this
image
image

This issue was closed.
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

3 participants