Comments (8)
@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 #6 tft->invertDisplay(1);
. Maybe there are 3 different versions of the screen?
I made a pull requestto 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.
Everything needs to be documented, but I need time. Sorry.
-
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 -
Before trying my code, please check if T-Deck is working first.
https://github.com/Xinyuan-LilyGO/T-Deck/tree/master/examples/UnitTest -
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.
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:
from esp32berry.
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.
`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.
@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.
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.
@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)
- I am unable to get any output on Display and only shows white screen. HOT 3
- Quick explanation HOT 3
- There is no ChatGPT.hpp HOT 2
- Display black. I could it compile and upload, but the display is black. HOT 4
- meshtastic HOT 2
- [App request] Meshtastic HOT 4
- Not able to get wifi networks to show up HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32berry.