![]() |
Color OLED module library
v0.5
Library for the WaveShare 0.96-inch color OLED (SSD1331) module
|
#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... | |
void ssd1331_clearDisplay | ( | screen_t * | dev | ) |
Clears the screen by setting the full area of the display to black.
dev | Pointer to the display's device structure returned by the initialization function. |
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.
dev | Pointer to the display's device structure returned by the initialization function. |
x0 | Starting horizontal coordinate of the rectangle, counted from the left side of the screen. |
y0 | Starting vertical coordinate of the rectangle, counted down from the top of the screen. |
x1 | Ending horizontal coordinate of the rectangle, counted from the left side of the screen. |
y1 | Ending vertical coordinate of the rectangle, counted down from the top of the screen. |
color | Color of the rectangle, in r5g6b5 format. |