Color OLED module library  v0.5
Library for the WaveShare 0.96-inch color OLED (SSD1331) module
Functions
ssd1331_copy.c File Reference
#include "ssd1331.h"

Functions

void ssd1331_copy (screen_t *dev, int x0, int y0, int x1, int y1, int x2, int y2)
 Creates a copy a rectangular area of the screen at another position on the screen. More...
 

Function Documentation

◆ ssd1331_copy()

void ssd1331_copy ( screen_t *  dev,
int  x0,
int  y0,
int  w,
int  h,
int  x2,
int  y2 
)

Creates a copy a rectangular area of the screen at another position on the screen.

Parameters
devPointer to the display's device structure returned by the initialization function.
x0Starting horizontal coordinate of the box to be copied, counted from the left side of the screen.
y0Starting vertical coordinate of the box to be copied, counted down from the top of the screen.
wWidth of the box to be copied.
hHeight of the box to be copied.
x2Horizontal coordinate where the copied box is to be pasted.
y2Vertical coordinate where the copied box is to be pasted.