Xinyuan-LilyGO / LilyGo-AMOLED-Series

LilyGo AMOLED Series
MIT License
88 stars 14 forks source link

Issues After Update (Arduino IDE) #18

Closed cairogomes closed 2 months ago

cairogomes commented 3 months ago

After the update (1.0.6), even downgrading Lvgl to 8.3.x, the screen displays a partial broken image, a small rectangle in the upper left corner, the rest of the screen is black.

Lilygo T-Display S3 AMOLED.

mauromorello commented 3 months ago

From my side after after update everything was messed up... It seems it helps to remove interely lvgl and re-install from arduino library manager; after that I discovered that now there are 2 lvgl libraries and all my reference has to be updated Also all custom font files have some problems...

cairogomes commented 3 months ago

From my side after after update everything was messed up...

Before update, everything was working perfectly and now everything is really messed up. Let's see if they release a fix.

lewisxhe commented 3 months ago

Yeah ? I'll check it out, can you tell me which example you ran? Currently I use platformio and everything works fine

lewisxhe commented 3 months ago

Should I use the TFT_eSPI_Sprite example?

lewisxhe commented 3 months ago

I guess you are using TFT_eSPI_Sprite, because the rotation function was added and the width and height were changed, which caused the original example to run incorrectly. Just swap the width and height. Please confirm https://github.com/Xinyuan-LilyGO/LilyGo-AMOLED-Series/commit/cf75c441e97717d89fdece73aaef0c33eb2d86dc

mauromorello commented 3 months ago

I had an example (v8.3) customized with my stuff. After updating old Font files (obtained from Lvgl site) are not working anymore (cache, last part of the file). This evening I will be more specific

lewisxhe commented 3 months ago

Hi.@mauromorello You can see my changes from the commit information. I only changed the full-screen refresh to partial refresh. What does this have to do with the font? I look forward to your detailed explanation.

cairogomes commented 3 months ago

Now this is working for me:

define LILYGO_TDISPLAY_AMOLED_SERIES

include "esp_arduino_version.h"

include

include

TFT_eSPI tft = TFT_eSPI(); TFT_eSprite spr = TFT_eSprite(&tft); LilyGo_Class amoled;

define WIDTH amoled.width()

define HEIGHT amoled.height()

void setup() { bool rslt = false; Serial.begin(115200); rslt = amoled.begin(); if (!rslt) { while (1) { Serial.println("There is a problem with the device!~"); delay(1000); } } spr.createSprite(WIDTH, HEIGHT); spr.setSwapBytes(1); }

void loop() { amoled.pushColors(0, 0, WIDTH, HEIGHT, (uint16_t *)spr.getPointer()); spr.fillSprite(TFT_BLUE); spr.setTextSize(2); spr.setTextColor(TFT_WHITE); spr.setTextWrap(false); spr.setTextDatum(4); spr.drawString("Hello World! :)", WIDTH / 2, HEIGHT / 2, 4); }

mauromorello commented 3 months ago

Hi.@mauromorello You can see my changes from the commit information. I only changed the full-screen refresh to partial refresh. What does this have to do with the font? I look forward to your detailed explanation.

You are right, obviously. I think my problem is related to lvgl 9 and my code, not because your update.

I noticed that you still work with 8.3, but when I upgraded Lilygo example arduino IDE update also LVGL to 9

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.