-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Added display scrolling ability #60
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
Conversation
Added text scroll capability.
Added scroll and dispCopy.
Hi agprimatic you can put some samples that use the setTextScroll() funtion? |
Wow, lots of changes in this repository since last October. I pulled the latest code and will merge my changes into it. There are also updates to Adafruit_SSD1306 to support scrolling. |
Is there a reason why this or #76 haven't been merged yet? |
@agprimatic resolve conflicts ? |
ssd1306 pr ref |
complaining about missing file |
I think your merge is failed to |
I think my repository is now up to date with the latest from adafruit. Should I create a new pull request? |
would be great, if ith pull request could be finished |
Making a sweep through some old PRs. Always grateful for contributions, but decided against merging this, since not all display hardware has pixel-get capability and making getPixel() virtual will cause mayhem with every display subclass (there’s a lot now). Forks are welcome and encouraged for special features for your own needs, upstream changes can then be kept in sync. Thank you. |
Added a new flag called scroll. If this is set by the function setTextScroll(). If scroll is set and the cursor is moved beyond the bottom of the display, the contents are scrolled up and the bottom line cleared (code added to write()). This allows traditional scrolling to occur when text is written that would otherwise be located beyond the bottom of the screen.
This change also adds the function dispCopy(), which provides a method to copy a part of the display, starting at (x0,y0) and going to (h,w) to a new location (x1,y1) on the screen. By default, it performs a pixel-by-pixel copy, but it can be overloaded if there is a faster way to perform the copy.