-
Notifications
You must be signed in to change notification settings - Fork 222
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
Lolin/Wemos 128x128 7735 almost works... but not quite :-( and it breaks the SDCard :-( :-( #54
Comments
Oh dear.... it gets worse :-( If you uncomment the test_sd_card() function in the demo and call it just before tft_demo:
it a) seems to corrupt the SDCard and b) the demo doesn't display anything else on the TFT after the "SPIFFS Mounted" message. My ESP32 (Lolin D32 Pro) has the inbuilt SDCard and TFT with different CS pins on the same SPI bus. Does this mean this library won't work with an SDCard on the same bus? PS - I noticed 80000000 hard coded in spi_master_lobo.c and thought I might be on to something (I run my ESPS32 at 240MHz). Sadly changing the frequency of my ESP32 to 80MHz doesn't fix this problem. |
Yes this library has an issue where display and SD Card doesn't work together. I had to abandon this library for the same reason. @loboris is aware of the issue but I guess busy to fix it ☹ |
The offset needs to be changed for this display to x=2, y=3.
That one also had a slightly wrong offset for my display. You can use the original Adafruit Adafruit_ST7735 library and this derived class to fix it:
create the tft instance like this: and call tft.initR() like before: |
I'm using a Wemos/Lolin 1.44" 128x128 7735 TFT. It's the one that plugs into the Lolin D32 Pro and I think the same as the Adafruit 1.44" TFT.
I've set the display type to DISP_TYPE_ST7735R (B seems the same) and DEFAULT_TFT_DISPLAY_WIDTH and DEFAULT_TFT_DISPLAY_HEIGHT to 128 and the tft_demo is sooooo close to working well.
What's not working is a sort of wrap/tear of the boxes at the top and bottom of the demo and the whole display being offset a few pixels up and to the left:


FWIW, I've tried two displays and two ESP32 boards. The hardware works with the Adafruit ST7735 Library in the Arduino IDE using tft.initR(INITR_144GREENTAB) but I'm trying to use this library with esp-idf.
I've tried playing with the XSTART and XEND settings (just flailing around in the dark really) but that doesn't seem to make any difference.
Can anyone point me in the right direction?
The text was updated successfully, but these errors were encountered: