Skip to content

Added display scrolling ability - #60

Closed
agprimatic wants to merge 6 commits into
adafruit:masterfrom
agprimatic:master
Closed

Added display scrolling ability#60
agprimatic wants to merge 6 commits into
adafruit:masterfrom
agprimatic:master

Conversation

@agprimatic

Copy link
Copy Markdown

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.

Added text scroll capability.
Added scroll and dispCopy.
@hulkco

hulkco commented Mar 19, 2016

Copy link
Copy Markdown

Hi agprimatic you can put some samples that use the setTextScroll() funtion?
Thanks

@agprimatic

Copy link
Copy Markdown
Author

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.
Finally, I have a short example file that I will put into Adafruit_SSD1306/examples.

@jonblack

jonblack commented Oct 9, 2016

Copy link
Copy Markdown

Is there a reason why this or #76 haven't been merged yet?

@tablatronix

Copy link
Copy Markdown
Contributor

@agprimatic resolve conflicts ?

@tablatronix

Copy link
Copy Markdown
Contributor

ssd1306 pr ref
adafruit/Adafruit_SSD1306#64

@tablatronix

Copy link
Copy Markdown
Contributor

complaining about missing file
#include "gfxfont.h"

@tablatronix

tablatronix commented Jan 2, 2017

Copy link
Copy Markdown
Contributor

I think your merge is failed to add gfxfont.h missing still and all other font assets, folders etc

@agprimatic

Copy link
Copy Markdown
Author

I think my repository is now up to date with the latest from adafruit. Should I create a new pull request?

@j-lang

j-lang commented Jul 31, 2017

Copy link
Copy Markdown

would be great, if ith pull request could be finished

@PaintYourDragon

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants