Comments (10)
I've opened #6225
from lvgl.
Makes sense, can you prepare a PR?
from lvgl.
The main purpose of this would be backward compatibility or ease of use?
from lvgl.
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.
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.
from lvgl.
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.
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.
Yes, we have to consider direct mode too.
from lvgl.
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.
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)
- Can lvgl support copying and pasting text using the mouse on Windows? HOT 2
- Possible bug in font-converter (or rendering text) HOT 5
- Demos widget 'Monthly Target' crashes on Elecrow ESP32 S3 Terminal HOT 5
- Tabview scrolling issue HOT 7
- The calendar component date in v8.3 version can only be displayed up to 2023. HOT 4
- Make the NuttX drivers even simpler HOT 4
- lv_image_set_scale and LV_IMAGE_ALIGN_TILE cannot be effective at the same time HOT 3
- Gridnav does not send LV_EVENT_FOCUSED HOT 2
- Smooth font, Smooth display of text during rendering HOT 3
- Canvas examples HOT 5
- draw line got strange effect HOT 14
- SSD1306 Display with ESP32 using SPI HOT 7
- NuttX + FB device (SAMA5D2) - rendering problem/tearing HOT 6
- label text does not show in transparent background display HOT 2
- It gets suck in draw_buf_flush function HOT 5
- segger embedded studio with lvgl8.4 can not show the draw result HOT 1
- Alternative solutions for the implementation of lv_obj_is_valid() HOT 9
- toutch freeze gui HOT 4
- README has broken picture HOT 2
- Assertion on lv_obj_send_event when using lv_screen_load_anim HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lvgl.