Don't get it work ILI9341 and ESP-WROVER-KIT Arduino

Hello I got it.

void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)

{

    uint32_t w = (area->x2 - area->x1 + 1);

    uint32_t h = (area->y2 - area->y1 + 1);

    uint32_t wh = w*h;

    tft.startWrite();

    tft.setAddrWindow(area->x1, area->y1, w, h);

    Serial.printf("%d - %d - %d - %d", area->x1, area->y1, w, h);

    while (wh--)

    {

       

  //    tft.pushColor(color_p++->full);//for Adafruit library

   tft.writeColor(color_p++->full,1);//for Adafruit library

   //    Serial.printf("--> %d - $%h", wh, color_p++->full );

    }

    tft.endWrite();

    lv_disp_flush_ready(disp);

}

This does not work
tft.pushColor(color_p+±>full);
I replaced it with
tft.writeColor(color_p+±>full,1);
and then it works
thank you for helping anyway.

1 Like