Code Monkey home page Code Monkey logo

Comments (8)

AdaSzi avatar AdaSzi commented on June 5, 2024 1

@0015 Hi, it seems like LilyGO changed the screen in some recent revision. The title of this commit is the clue: Xinyuan-LilyGO/T-Deck@386e177

While trying to make my T-Deck work I tried Abdallah's solution:

`tft->begin(); tft->setRotation(1); tft->fillScreen(TFT_BLACK); tft->invertDisplay(1); this->initLVGL(); }

@@ -41,8 +42,14 @@ void Display::my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color

tft->startWrite(); tft->setAddrWindow(area->x1, area->y1, w, h); //tft->writePixels((lgfx::rgb565_t *)&color_p->full, w * h); tft->pushColors((uint16_t *)&color_p->full, w * h, false); tft->endWrite();` in my fork of this amazing project i managed to fix the bug after i changed write pixels with pushcolors nad use tft->inverdisplay here is the fork https://github.com/abdallahnatsheh/ESP32Berry

I found out that my unit does not need color inversion tft->invertDisplay(1); . Maybe there are 3 different versions of the screen?
I made a pull request
#6 to add this fix as default for users that have newer revision of the T-Deck.

Edit:
I found out that after using https://github.com/0015/ESP32Berry/blob/main/LVGL_Setting/lv_conf.h everything worked fine. I will try to add installation guide to the readme

from esp32berry.

0015 avatar 0015 commented on June 5, 2024

Everything needs to be documented, but I need time. Sorry.

  1. The first thing you need to do is install libraries T-Deck supports. Without this, the T-Deck will not work.
    https://github.com/Xinyuan-LilyGO/T-Deck

  2. Before trying my code, please check if T-Deck is working first.

    https://github.com/Xinyuan-LilyGO/T-Deck/tree/master/examples/UnitTest

  3. After confirmation, download this ESP32Berry project. If you install LovyanGFX, ChatGPT Client library, it will work normally.
    https://github.com/0015/ESP32Berry/tree/main/Arduino_IDE/ESP32Berry

from esp32berry.

richonguzman avatar richonguzman commented on June 5, 2024

installed but:

line 386 of ESP32Berry_Display.cpp had to be changed from:

&lv_font_montserrat_20 to &lv_font_montserrat_16 to compile and also it looked like this:
IMG_2118

from esp32berry.

misterniark avatar misterniark commented on June 5, 2024

Hi Eric and thank you for sharing this code. I learn a lot thanks to you.

I have the same problems with the font and the same graphics results when I compile with lv_font_montserrat_16

from esp32berry.

abdallahnatsheh avatar abdallahnatsheh commented on June 5, 2024

`tft->begin();
tft->setRotation(1);
tft->fillScreen(TFT_BLACK);
tft->invertDisplay(1);
this->initLVGL();
}

@@ -41,8 +42,14 @@ void Display::my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color

tft->startWrite();
tft->setAddrWindow(area->x1, area->y1, w, h);
//tft->writePixels((lgfx::rgb565_t *)&color_p->full, w * h);
tft->pushColors((uint16_t *)&color_p->full, w * h, false);
tft->endWrite();`
in my fork of this amazing project i managed to fix the bug after i changed write pixels with pushcolors nad use tft->inverdisplay
here is the fork https://github.com/abdallahnatsheh/ESP32Berry

from esp32berry.

0015 avatar 0015 commented on June 5, 2024

@richonguzman Please use this LVGL config file instead of using the invertDisplay function. https://github.com/0015/ESP32Berry/blob/main/LVGL_Setting/lv_conf.h

from esp32berry.

richonguzman avatar richonguzman commented on June 5, 2024

I did use this , It still with inverted colors and wifi its not working

It would be awesome to have some documentation to know how to add to this and not just create issues so we could help

from esp32berry.

0015 avatar 0015 commented on June 5, 2024

@richonguzman I don't get it. If you're using the same version as me, it should work without issue.

from esp32berry.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.