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

ESP32 / RA8875 connection problem #1

Open
momosh13 opened this issue Jan 15, 2020 · 14 comments
Open

ESP32 / RA8875 connection problem #1

momosh13 opened this issue Jan 15, 2020 · 14 comments

Comments

@momosh13
Copy link

momosh13 commented Jan 15, 2020

Hi
Fist this is unbelievable, Thank you for this library.
Please, i need help to make this work.
2 problems.

  1. I have to put "lv_xg.h" i same folder with lv_test_label_1 and then it compiles.
  2. I have RA8875 and couple different ESP32 boards,
    WEMOS LOLIN32 and Adafruit ESP32 Feather, i'm having hard time to connect RA8875 with any of this boards, lv_test_label_1 compiles fine, uploads fine, but noting is happening. I thing this the pins are
    #define XG_PIN_DC 16
    #define XG_PIN_LCD_RESET 17 //34
    #define XG_PIN_SD_CS 4
    #define XG_PIN_TP_CS 33
    #define XG_PIN_TP_IRQ 27
    #define XG_PIN_LCD_CS 5
    #define XG_PIN_MOSI 23
    #define XG_PIN_MISO 19
    #define XG_PIN_SCK 18

but when i'm checking the pins with oscilloscope, noting comes out of my ESP32 boards, so i don't know what to do.
Please help me.
Thank you in advance.

@patrickpollet1966
Copy link
Owner

Hello,

Did you install the library in your Arduino IDE ?

I ask this question because i did not have to copy lv_xg.h in the same folder as the .ino and it is perhaps a point indicating that something is goes wrong.

On the other point, the pins involved are XG_PIN_LCD_RESET, XG_PIN_LCD_CS, XG_PIN_MOSI, XG_PIN_MISO, XG_PIN_SCK (which are default pin for SPI in ESP32-ARDUINO).
If you use this it should works.

@momosh13
Copy link
Author

Thank you for reply.
So, After lot off test's i make it "work",
The library works only on DOIT ESP32 DEVKIT VI board and
this is the wiring pins
#define XG_PIN_BL (2)
#define XG_PIN_LCD_RESET (4)
#define XG_PIN_TP_CS (15)
#define XG_PIN_LCD_CS 5
#define XG_PIN_MOSI 23
#define XG_PIN_MISO 19
#define XG_PIN_SCK 18

And now i have this problem, the colors are wrong, please see the attached pictures
IMG_1964
IMG_1963

Please help me to fix this.
Thank you

@patrickpollet1966
Copy link
Owner

patrickpollet1966 commented Feb 19, 2020 via email

@momosh13
Copy link
Author

Thank you, it's fixed !
One more question, if i can?
Is there a chance, to run this, on Teensy 4.0?
If yes? Help me whit that too.
Thank you
IMG_1970

@patrickpollet1966
Copy link
Owner

patrickpollet1966 commented Feb 22, 2020

There's no code for Teensy 4.0 in the source but it's not difficult to add it.
You have to modify XGLCD.h and add defines and specific SPI code for the Teensy.
(There's currently code for esp32, arduino, mkr, ...)

@pacmenDE
Copy link

pacmenDE commented Jul 8, 2020

hi, all.
i have prblems to run the screen.(https://www.buydisplay.com/7-inch-lcd-module-capacitive-touch-screen-panel-i2c-spi-serial)
ER-TFTM070-5 is 800x480 dots 7" color tft lcd module display with RA8875
I use a https://www.az-delivery.de/products/esp32-developmentboard DevKit board

I cabled like @momosh13 descriped. Bu the screen stays dark. Any ideas?
regards Patrik
Power is connected to external 5v power supply.

@pacmenDE
Copy link

pacmenDE commented Jul 9, 2020

Thank you for reply.
So, After lot off test's i make it "work",
The library works only on DOIT ESP32 DEVKIT VI board and
this is the wiring pins
#define XG_PIN_BL (2)
#define XG_PIN_LCD_RESET (4)
#define XG_PIN_TP_CS (15)
#define XG_PIN_LCD_CS 5
#define XG_PIN_MOSI 23
#define XG_PIN_MISO 19
#define XG_PIN_SCK 18

And now i have this problem, the colors are wrong, please see the attached pictures
IMG_1964
IMG_1963

Please help me to fix this.
Thank you
Hi @momosh13 , can you tell me how have connected the display with power supply?

@patrickpollet1966
Copy link
Owner

patrickpollet1966 commented Jul 9, 2020 via email

@pacmenDE
Copy link

pacmenDE commented Jul 9, 2020

Hi Patrick, thank you for your reply.
I think I have a power issue.
Can you say something about powering of the display?

@patrickpollet1966
Copy link
Owner

patrickpollet1966 commented Jul 10, 2020 via email

@pacmenDE
Copy link

pacmenDE commented Oct 21, 2020 via email

@patrickpollet1966
Copy link
Owner

patrickpollet1966 commented Oct 21, 2020 via email

@patrickpollet1966
Copy link
Owner

patrickpollet1966 commented Oct 21, 2020 via email

@DinhKhanhDev
Copy link

Hello all.
please help me.
i am working a project about ESP32 and LCD TFT RA8875
I have a issue when I connect wifi for ESP32, the characters on the screen lose some characters.
example : "HELLO WORLD" then just "HLL WOD "
when not connected to wifi everything is normal

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

4 participants