Glcd scroll()
This moves the image on the display either up, down, left or right by the number of pixels selected.
#include "GLCD_ST7565.h"
#include <Ports.h>
#include <RF12.h> // needed to avoid a linker error :(
GLCD_ST7565 glcd;
glcd.scroll(byte direction, byte pixels)
Parameters
direction
SCROLLUP, SCROLLDOWN, SCROLLLEFT or SCROLLRIGHT. The direction you wish the image to be moved.
pixels
0-127, the number of pixels to shift the image. If scrolling up or down, 8 pixels is the default height of a text line.
Notes
Pixels that move off the edge are lost. The new pixels that appear on the other edge will be black. If you are working with a white background you will want to paint these in immediately afterwards using fillRect.