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

Functions

void ssd1331_fillRect (screen_t *dev, int x0, int y0, int x1, int y1, int color)
 Draws a filled rectangle on the screen in the specified color. More...
 
void ssd1331_clearDisplay (screen_t *dev)
 Clears the screen by setting the full area of the display to black. More...
 

Function Documentation

◆ ssd1331_clearDisplay()

void ssd1331_clearDisplay ( screen_t *  dev)

Clears the screen by setting the full area of the display to black.

Parameters
devPointer to the display's device structure returned by the initialization function.

◆ ssd1331_fillRect()

void ssd1331_fillRect ( screen_t *  dev,
int  x0,
int  y0,
int  x1,
int  y1,
int  color 
)

Draws a filled rectangle on the screen in the specified color.

Parameters
devPointer to the display's device structure returned by the initialization function.
x0Starting horizontal coordinate of the rectangle, counted from the left side of the screen.
y0Starting vertical coordinate of the rectangle, counted down from the top of the screen.
x1Ending horizontal coordinate of the rectangle, counted from the left side of the screen.
y1Ending vertical coordinate of the rectangle, counted down from the top of the screen.
colorColor of the rectangle, in r5g6b5 format.