-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix the garbage appearing on last line of OLED #10975
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: master
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
|
There is also PR #10760 which in my opinion is not fixing root cause and possibly overwrites something wrong. |
- Changed from horizontal (0x00) to page addressing mode (0x02) to match the page-by-page clearing approach - Restored the display start line command (0x40) that was missing from the previous commit - This ensures proper OLED initialization and prevents garbage on the last line
|
Fixed @qodo-merge-pro valid concerns. |
|
Which displays did you test this with, please? The SSH1106 needs more data sent to it than the SSD1306. The SSD1306 just gets bytes for the pixels. The SSH1106 has memory for four extra columnsthat are not displayed. For the SSH1106, we would send two blank columns, then the data you want displayed, then two more blank columns. Any changes should be tested with both, please. |
User description
Fixes issue #10765 where last line of OLED shown garbage.
PR Type
Bug fix
Description
This description is generated by an AI tool. It may have inaccuracies
Fixed OLED display garbage on last line
Improved page-by-page clearing method for all 8 pages
Added proper address reset after clearing operation
Diagram Walkthrough
File Walkthrough
display_ug2864hsweg01.c
Fix OLED clear function page addressingsrc/main/drivers/display_ug2864hsweg01.c