-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Fix Change colors to RGB and partial flush for ILI9488 display #3135
base: main
Are you sure you want to change the base?
Conversation
Hi @mikmog, 😯 I'm afraid you'll have to use the PR template like the rest of us... |
WalkthroughThe changes update the graphics display driver for the ILI9488 by modifying the pixel order and control flow in the drawing routine. The pixel coloring is now set to use an RGB format instead of BGR, and the initialization command for display function control now includes an additional parameter. Additionally, the Changes
Sequence Diagram(s)sequenceDiagram
participant BitBlt
participant OuterLoop
participant InnerLoop
participant PixelCalc
participant Display
BitBlt->>OuterLoop: Begin loop over height
OuterLoop->>InnerLoop: Begin loop over width
InnerLoop->>PixelCalc: Calculate srcX and srcY
PixelCalc->>Display: Extract and convert pixel data
Display-->>InnerLoop: Return processed pixel
InnerLoop-->>OuterLoop: Complete inner loop iteration
OuterLoop-->>BitBlt: Complete outer loop iteration
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (6)
🔇 Additional comments (4)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Hi @mikmog, 😯 I'm afraid you'll have to use the PR template like the rest of us... |
Hi @mikmog, 😯 I'm afraid you'll have to use the PR template like the rest of us... |
@mikmog there are issues with the code style on the source files. Make sure to follow the project code style. Check the details here on how it works and the tools required to help you with that. |
Hi @mikmog, 😯 I'm afraid you'll have to use the PR template like the rest of us... |
I don't think Blue-Green-Red or Red-Green-Blue pixel color should be changed in the code like this. We need a way to change it from the managed code as there are panels with BGR and RGB in existence with the same controller chip. |
I agree. A way to override or configure the MADCTL_* from managed side sounds sound. But I'm not sure how to proceed. Should the ili9488 be added as a generic driver on managed side? Currently since using the ili9488 is a custom build anyway (I've updated GRAPHICS_DISPLAY in CMake to ILI9488). An alternative is to just merge the partial flush fix stuff. And make MADCTL_BGR/MADCTL_RGB configurable in code/driver native side |
Description
Change colors in native Ili9488 display driver
How Has This Been Tested?
Screenshots
Types of changes
Checklist
Summary by CodeRabbit