Added function to clear only region of display#235
Open
MartinBroers wants to merge 3 commits intorust-embedded-community:masterfrom
Open
Added function to clear only region of display#235MartinBroers wants to merge 3 commits intorust-embedded-community:masterfrom
MartinBroers wants to merge 3 commits intorust-embedded-community:masterfrom
Conversation
added 3 commits
February 27, 2026 10:22
Rather than clearing entire screen buffer, just clear a portion of the screen for faster partial writes. Signed-off-by: Martin Broers <martin.broers@bluebirdpower.com>
aligned 0.4.3 uses edition2024, which requires Cargo 1.85+. The MSRV job is unaffected as it only builds the lib at 1.75.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Rather than clearing entire screen buffer, just clear a portion of the screen for faster partial writes.
Hi! Thank you for helping out with SSD1306 development! Please:
masterif you're not already up to dateCHANGELOG.mdentry in the Unreleased section under the appropriate heading (Added, Fixed, Changed, etc)rustfmton the project withcargo fmt --all- CI will not pass without this stepPR description
Awesome repository, I could use it out of the box! I am running on a time-critical MCU, so my writings to the display should be as quick as possible. However, when writing new text over and existing text will just leave the old text there and overwrite it. That is why I added a function to clear a portion of the screen to allow both a short write and a clear text.
I am, however, not sure I did this in the way we want to design the library. If you are not happy with the current implementation, could you help me (point me) how to do this?
Thanks,
Martin