Expose hardware scroll speeds per datasheet#166
Expose hardware scroll speeds per datasheet#166patricksurry wants to merge 2 commits intoadafruit:masterfrom
Conversation
…ne pixel every 5 frames
|
It would also be nice to add support for controlling up vs down vertical scroll in the scroll diagonal methods. The vertical offset is currently hard-wired as It's interesting to note that the start/stop page only effects what part of the screen is scrolled horizontally - the whole screen is always scrolled vertically. So you get something that looks like pure vertical scroll if you set start/stop to a page range that's off screen, e.g. I would refactor all the scroll methods to share a single core routine, but I'm confused about why there's a mix of |
Added an optional rate parameter to the four
startscroll[diag][right|left](...)functions which exposes the variable scroll rate options described in the datasheet. There are eight rates ranging from one pixel every 2 frames (fastest) to one pixel every 256 frames (slowest).For backwards compatibility the default rate is maintained at one pixel every 5 frames (parameter value 0x00).
Also updated comments to explain that start/stop parameters count pages of 8 rows, not individual rows.
Prior to merging, this functionality can be accessed using the low level
ssd1306_command: