-
Notifications
You must be signed in to change notification settings - Fork 8.3k
drivers: display: features for ILI9341 driver #99267
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
base: main
Are you sure you want to change the base?
drivers: display: features for ILI9341 driver #99267
Conversation
| enum madctl_cmd_set { | ||
| CMD_SET_1, /* Default for most of ILI9xxx display controllers */ | ||
| CMD_SET_2, /* Used by ILI9342c */ | ||
| CMD_SET_2, /* Used by ILI9342c & ILI9341 */ |
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.
Have you verified that display orientation works with this change? Assuming that is why it was made
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.
Using CMD_SET_2 the display orientation works as described on the documentation . To verify it, I set a small delay between the squares rendering, comment the display_blanking_off and put it at the beginning. It was shown how each square was appearing according with the order set up on the script, showing the behaviour described on the document: clockwise, from TOP_LEFT(RED) to BOTTOM_LEFT(GRAY SCALE). I used RGB888 for the example
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.
Maybe we should add the delay between the squares in the sample, seems useful.
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.
Should we do that on this PR? or is better left it for another PR?
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.
Should we do that on this PR? or is better left it for another PR?
Out-of-scope for this one
b56244b to
26a3faf
Compare
904bdca to
ff6820f
Compare
JarmouniA
left a comment
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.
Please delete dt-bindings/display/ili9xxx.h
ff6820f to
91844fb
Compare
|
@JarmouniA 3 Commit set up on branch: 1 for original changes, another for dix-up changes and the last one for documentation |
91844fb to
c2d40ed
Compare
e72672f to
7131a9e
Compare
JarmouniA
left a comment
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.
Last commit message title is incorrect.
7131a9e to
500faee
Compare
Commit message title changed |
|
@JarmouniA Commit message title changed |
57da9df to
4515947
Compare
ILI9341 is not deploying correctly the display sample. The screen looks mirrored vertically and the color doesn't match with the sequence expected. To fix it, change the Memory Access Control configuration data. Signed-off-by: Nicolas Moreno <[email protected]>
Replaced display-controller.yaml with lcd-controller.yaml Deleted pixel format property, replacing it with the property on lcd-controller.yaml. Replace ILI9XXX RGB macro with PANEL RGB macro. Also, added condition to verify pixel format is RGB565, BRG565 or RGB888, otherwise it will show error Replaced <zephyr/dt-bindings/display/ili9xxx.h> with <zephyr/dt-bindings/display/panel.h> and ILI9XXX_PIXEL with PANEL_PIXEL in some Devicetrees and files that contained both elements. Fixed some script sintax. Deleted drivers/display/display_ili9xxx.c Signed-off-by: Nicolas Moreno <[email protected]>
Added documentation for doc/releases/migration-guide-4.4.rst in reference with the changes on ili9xxx and ili9341 controllers Signed-off-by: Nicolas Moreno <[email protected]>
4515947 to
22e5b76
Compare
|




Overview
This PR adds some features on
zephyr/driver/displayfiles related withili9xxxheaderFeatures Implemented
modification on
display_ili9xxx.canddisplay_ili9xxx.hfilesadd condition to select BGR/RGB color order depending on pixel format
change CMD_SET for ILI9341
Files Modified/Added
zephyr/drivers/display/display_ili9xxx.c- changes made on MADCTL registerzephyr/drivers/display/display_ili9xxx.h- Comment modifiedzephyr/dts/bindings/display/ilitek,ili9xxx-common.yaml- Added BGR565 value on enumzephyr/include/zephyr/dt-bindings/display/ili9xxx.h- addedILI9XXX_PIXEL_FORMAT_BGR565on pixel formatFixes #99134