SSD1306 OLED display driver
1.5.0
This library is developed to control SSD1306/SSD1331 RGB i2c/spi OLED displays and spi PCD8544 LED display
|
Functions | |
void | ssd1331_setColor (uint16_t color) |
Sets default color, generated by RGB_COLOR8 macros. More... | |
void | ssd1331_setRgbColor (uint8_t r, uint8_t g, uint8_t b) |
Sets default color. More... | |
void | ssd1331_drawLine (uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint16_t color) |
void | ssd1331_fastDrawBuffer8 (uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *data) |
void | ssd1331_fastDrawBuffer16 (uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t *data) |
void ssd1331_drawLine | ( | uint8_t | x1, |
uint8_t | y1, | ||
uint8_t | x2, | ||
uint8_t | y2, | ||
uint16_t | color | ||
) |
Draws line
x1 | - x position in pixels of start point |
y1 | - y position in pixels of start point |
x2 | - x position in pixels of end point |
y2 | - y position in pixels of end point |
color | - color of the line, refer to RGB_COLOR8 macros |
Definition at line 45 of file ssd1331_api.c.
void ssd1331_fastDrawBuffer16 | ( | uint8_t | x, |
uint8_t | y, | ||
uint8_t | w, | ||
uint8_t | h, | ||
const uint8_t * | data | ||
) |
Draws 16-bit bitmap, located in SRAM, on the display Each byte represents separate pixel: refer to RGB_COLOR16 to understand RGB scheme, being used.
x | - horizontal position in pixels |
y | - vertical position in pixels |
w | - width of bitmap in pixels |
h | - height of bitmap in pixels |
data | - pointer to data, located in SRAM. |
Definition at line 71 of file ssd1331_api.c.
void ssd1331_fastDrawBuffer8 | ( | uint8_t | x, |
uint8_t | y, | ||
uint8_t | w, | ||
uint8_t | h, | ||
const uint8_t * | data | ||
) |
Draws 8-bit bitmap, located in SRAM, on the display Each byte represents separate pixel: refer to RGB_COLOR8 to understand RGB scheme, being used.
x | - horizontal position in pixels |
y | - vertical position in pixels |
w | - width of bitmap in pixels |
h | - height of bitmap in pixels |
data | - pointer to data, located in SRAM. |
Definition at line 59 of file ssd1331_api.c.
void ssd1331_setColor | ( | uint16_t | color | ) |
Sets default color, generated by RGB_COLOR8 macros.
Sets color generated by RGB_COLOR8 macros. For now only 8-bit RGB mode of SSD1331 display is supported
color | - new color to use for monochrome operations. |
Definition at line 35 of file ssd1331_api.c.
void ssd1331_setRgbColor | ( | uint8_t | r, |
uint8_t | g, | ||
uint8_t | b | ||
) |
Sets default color.
Sets default color for monochrome operations. For now only 8-bit RGB mode of SSD1331 display is supported
r | - red in 0-255 range. |
g | - green in 0-255 range. |
b | - blue in 0-255 range. |
Definition at line 40 of file ssd1331_api.c.