SSD1306 OLED display driver  1.5.6
This library is developed to control SSD1306/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
Functions
SSD1331 only API functions

Functions

void ssd1331_setColor (uint16_t color)
 Sets default color, generated by RGB_COLOR8 or RGB_COLOR16 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_drawBufferFast8 (lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *data)
 
void ssd1331_drawBufferFast16 (lcdint_t x, lcdint_t y, lcduint_t w, lcduint_t h, const uint8_t *data)
 

Detailed Description

Function Documentation

void ssd1331_drawBufferFast16 ( lcdint_t  x,
lcdint_t  y,
lcduint_t  w,
lcduint_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.

Parameters
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 73 of file ssd1331_api.c.

void ssd1331_drawBufferFast8 ( lcdint_t  x,
lcdint_t  y,
lcduint_t  w,
lcduint_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.

Parameters
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 61 of file ssd1331_api.c.

void ssd1331_drawLine ( uint8_t  x1,
uint8_t  y1,
uint8_t  x2,
uint8_t  y2,
uint16_t  color 
)

Draws line

Parameters
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
Note
This API can be used only with ssd1331 RGB oled displays

Definition at line 46 of file ssd1331_api.c.

void ssd1331_setColor ( uint16_t  color)

Sets default color, generated by RGB_COLOR8 or RGB_COLOR16 macros.

Sets color generated by RGB_COLOR8 or RGB_COLOR16 macros.

Parameters
color- new color to use for monochrome-specific operations on color display.

Definition at line 36 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

Parameters
r- red in 0-255 range.
g- green in 0-255 range.
b- blue in 0-255 range.

Definition at line 41 of file ssd1331_api.c.