![]() |
Color OLED module library
v0.5
Library for the WaveShare 0.96-inch color OLED (SSD1331) module
|
#include "ssd1331.h"
Functions | |
void | ssd1331_drawLine (screen_t *dev, int x0, int y0, int x1, int y1, int color) |
Draws a line on the screen in the specified color. More... | |
void | ssd1331_drawFastVLine (screen_t *dev, int x, int y, int w, int color) |
Draws a vertical line on the screen in the specified color. No bounds checking (used by other functions that do the bounds checking first) More... | |
void | ssd1331_drawFastHLine (screen_t *dev, int x, int y, int h, int color) |
Draws a horizontal line on the screen in the specified color. No bounds checking (used by other functions that do the bounds checking first) More... | |
void ssd1331_drawFastHLine | ( | screen_t * | dev, |
int | x, | ||
int | y, | ||
int | h, | ||
int | color | ||
) |
Draws a horizontal line on the screen in the specified color. No bounds checking (used by other functions that do the bounds checking first)
dev | Pointer to the display's device structure returned by the initialization function. |
x | Horizontal coordinate of the line, counted from the left side of the screen. |
y | Vertical coordinate of the line. |
h | Length of the line in pixels. |
color | Color of the line. |
void ssd1331_drawFastVLine | ( | screen_t * | dev, |
int | x, | ||
int | y, | ||
int | w, | ||
int | color | ||
) |
Draws a vertical line on the screen in the specified color. No bounds checking (used by other functions that do the bounds checking first)
dev | Pointer to the display's device structure returned by the initialization function. |
x | Horizontal coordinate of the line. |
y | Vertical coordinate of the line, counted down from the top of the screen. |
w | Length of the line in pixels. |
color | Color of the line. |
void ssd1331_drawLine | ( | screen_t * | dev, |
int | x0, | ||
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | color | ||
) |
Draws a line 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 line, counted from the left side of the screen. |
y0 | Starting vertical coordinate of the line, counted down from the top of the screen. |
x1 | Ending horizontal coordinate of the line. |
y1 | Ending vertical coordinate of the line. |
color | Color of the pixel, in r5g6b5 format. |