Git Product home page Git Product logo

Comments (10)

kisvegabor avatar kisvegabor commented on July 2, 2024 2

I've opened #6225

from lvgl.

kisvegabor avatar kisvegabor commented on July 2, 2024 1

Makes sense, can you prepare a PR?

from lvgl.

kisvegabor avatar kisvegabor commented on July 2, 2024

The main purpose of this would be backward compatibility or ease of use?

from lvgl.

XuNeo avatar XuNeo commented on July 2, 2024

Mainly for backward compatibility. Without CONFIG_LV_COLOR_16_SW_SWAP , those listed configurations will be break in lvgl v9 and it's tough for me to upgrade all LCD drivers to support hardware swap.

from lvgl.

FASTSHIFT avatar FASTSHIFT commented on July 2, 2024

If the LCD driver does not support the endian setting, the SPI can be switched to Bit Order set to MSB FIRST+16bit mode when sending the image buffer with DMA, and then switched to 8bit mode after sending, so that the code is simple and efficient.
I believe most MCUs can support this mode.

See:
65794137df908305e3d853e35e97324

MVIMG_20240429_000014

from lvgl.

XuNeo avatar XuNeo commented on July 2, 2024

Nice work.

Calling lv_draw_sw_rgb565_swap also has limitation. It performs byte order swap in place, thus needs to swap back before drawing next frame.

from lvgl.

kisvegabor avatar kisvegabor commented on July 2, 2024

It performs byte order swap in place, thus needs to swap back before drawing next frame.

Why? The buffer into which the UI drawn is dropped after sending the image. Or do you use LVGL in direct mode?

from lvgl.

XuNeo avatar XuNeo commented on July 2, 2024

Yes, we have to consider direct mode too.

from lvgl.

kisvegabor avatar kisvegabor commented on July 2, 2024

In this case we should swap the bytes only on a given area. Adding lv_draw_sw_rgb565_swap_area can be useful.

from lvgl.

lvgl-bot avatar lvgl-bot commented on July 2, 2024

We need some feedback on this issue.

Now we mark this as "stale" because there was no activity here for 14 days.

Remove the "stale" label or comment else this will be closed in 7 days.

from lvgl.

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.