GithubHelp home page GithubHelp logo

Comments (10)

Djaison avatar Djaison commented on June 11, 2024

I made corrections to the void ili9488_init (void) function in the ili9488.с file, {ILI9488_CMD_MEMORY_ACCESS_CONTROL, {(0x20 | 0x08)}, 1}
I changed it to
{ILI9488_CMD_MEMORY_ACCESS_CONTROL, {0x48}, 1},

I think you can add this option to menuconfig

from lv_port_esp32.

C47D avatar C47D commented on June 11, 2024

Hi @Djaison,

Can you try swapping the values on this config?
lvgl_display_size

If that doesn't work i can add an option to the menuconfig as you've suggested.

Offtopic: Your interface looks really cool :)

from lv_port_esp32.

Djaison avatar Djaison commented on June 11, 2024

If that doesn't work i can add an option to the menuconfig as you've suggested.

it does not work :)

now it looks like this

1584452436019

from lv_port_esp32.

C47D avatar C47D commented on June 11, 2024

Ok, I will try to add an option to set the display on portrait mode from the menuconfig, but it will be later today.

from lv_port_esp32.

an-erd avatar an-erd commented on June 11, 2024

It would be good to add this option for the ILI9341, too. I just worked on this today and found that for the M5Stack Fire in the file externals\lv_port_esp32\components\lvgl_esp32_drivers\lvgl_tft\ili9341.c writing 0x08 (instead of 0x68) to 0x36 worked for me. With this the display shows in landscape, with the buttons on the bottom. I used this code:

#if ILI9341_INVERT_DISPLAY
uint8_t data[] = {0x08};
// this same command also sets rotation (portrait/landscape) and inverts colors.
// https://gist.github.com/motters/38a26a66020f674b6389063932048e4c#file-ili9844_defines-h-L24
ili9341_send_cmd(0x36);
ili9341_send_data(&data, 1);
#endif

Value taken from ILI9341 datasheet, section 8.2.29. Memory Access Control (36h). Also height and width must be swapped, too. I did it like this in file externals\lv_port_esp32\components\lvgl\lv_conf.h

#define LV_HOR_RES_MAX (CONFIG_LVGL_DISPLAY_HEIGHT)
#define LV_VER_RES_MAX (CONFIG_LVGL_DISPLAY_WIDTH)

from lv_port_esp32.

C47D avatar C47D commented on June 11, 2024

It would be good to add this option for the ILI9341, too.

Sure, I will add it later today, I'm at work right now.

from lv_port_esp32.

Djaison avatar Djaison commented on June 11, 2024

I was able to configure the touch to the portrait orientation should also change the default settings in menuconfig, the operating settings such:
22

Result ;-)

ezgif com-video-to-gif

P.S. Touch driver is a FT6236

from lv_port_esp32.

C47D avatar C47D commented on June 11, 2024

It looks really nice :)

I was able to configure the touch to the portrait orientation should also change the default settings in menuconfig, the operating settings such

We can add a note for that on the README, I don't know if it can be done automagically based on the display orientation.

from lv_port_esp32.

Djaison avatar Djaison commented on June 11, 2024

it can be added to menuсonfig as a function of the orientation of the display, and later I will be able to provide it after checking

from lv_port_esp32.

stale avatar stale commented on June 11, 2024

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from lv_port_esp32.

Related Issues (20)

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.