-
Notifications
You must be signed in to change notification settings - Fork 9
Add display-list compositing for transparent backgrounds, RGB LCD driver, and new port commands #13
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
Closed
drlinux
wants to merge
8
commits into
atomvm:main
from
drlinux:feature/display-list-compositing-and-rgb-lcd
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ff125ac
dcs_lcd_color: Add display_color helpers and fix alpha mask
drlinux 23cccf3
dcs_lcd_draw: Add display-list compositing for transparent backgrounds
drlinux a055634
display_task: Pre-ack update_region and draw_rgb565_raw, fix EPD pixe…
drlinux 7fef6bf
Add RGB LCD display driver for ESP-IDF 5+
drlinux b98879d
docs: Document RGB LCD driver, update_region, draw_rgb565_raw, and tr…
drlinux 3db31a1
README: List RGB LCD panels in supported hardware
drlinux dbff782
docs: Name tested Waveshare ESP32-S3 7-inch RGB Touch LCD
drlinux 0f7fc29
rgb_lcd: Preserve full framebuffer across region updates and raw draws
drlinux File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,16 @@ static inline uint8_t rgba8888_get_alpha(uint32_t color) | |
|
|
||
| static inline uint16_t rgba8888_color_to_rgb565(uint32_t color) | ||
| { | ||
| uint8_t r = color >> 24; | ||
| uint8_t r = (color >> 24) & 0xFF; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This shouldn't be necessary, color is a uint32_t, so Your commit says "Fix missing & 0xFF mask on the red channel extraction in rgba8888_color_to_rgb565()." Are you maybe trying to fix a bug elsewhere? |
||
| uint8_t g = (color >> 16) & 0xFF; | ||
| uint8_t b = (color >> 8) & 0xFF; | ||
|
|
||
| return (((uint16_t) (r >> 3)) << 11) | (((uint16_t) (g >> 2)) << 5) | ((uint16_t) b >> 3); | ||
| } | ||
|
|
||
| static inline uint16_t display_color_to_rgb565(uint32_t color) | ||
| { | ||
| uint8_t r = (color >> 24) & 0xFF; | ||
| uint8_t g = (color >> 16) & 0xFF; | ||
| uint8_t b = (color >> 8) & 0xFF; | ||
|
|
||
|
|
@@ -55,6 +64,13 @@ static inline uint16_t rgb565_color_to_surface(uint16_t color16) | |
| return (uint16_t) SPI_SWAP_DATA_TX(color16, 16); | ||
| } | ||
|
|
||
| static inline uint16_t display_color_to_surface(uint32_t color) | ||
| { | ||
| uint16_t color16 = display_color_to_rgb565(color); | ||
|
|
||
| return rgb565_color_to_surface(color16); | ||
| } | ||
|
|
||
| static inline uint16_t uint32_color_to_surface(uint32_t color) | ||
| { | ||
| uint16_t color16 = rgba8888_color_to_rgb565(color); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rgba8888_color_to_rgb565anddisplay_color_to_rgb565are the same function.