Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share the problems I encountered when using the driver and the temporary solutions #344

Open
yusuhua opened this issue Jun 1, 2024 · 0 comments

Comments

@yusuhua
Copy link

yusuhua commented Jun 1, 2024

  1. The board is Rp2 PICO, and the display is ili9341
    Problem encountered: Object color inversion
    Temporary solution:
    https://github.com/lvgl/lv_binding_micropython/blob/master/driver/generic/ili9xxx.py
    Add _INVERT = const(0x21) after line 78, and add (_INVERT, None) after line 147.

  2. The board is esp32, and the display is ili9341
    Problem encountered: Display rotation abnormality when rot=LANDSCAPE or REVERSE_LANDSCAPE
    Temporary solution:
    https://github.com/lvgl/lv_binding_micropython/blob/master/driver/esp32/ili9XXX.py
    Add rot=PORTRAIT, before invert=False in line 65, and add

        if (rot in [LANDSCAPE, REVERSE_LANDSCAPE]):
            self.width = height
            self.height = width

after line 80, and add rot=rot, before invert=invert in line 542.

@yusuhua yusuhua changed the title share the problems I encountered when using the driver and the temporary solutions Share the problems I encountered when using the driver and the temporary solutions Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant