![]() |
LibDriver SSD1351
2.0.0
SSD1351 full function driver
|
ssd1351 example driver modules More...
Functions | |
uint8_t | ssd1351_advance_init (void) |
advance example init More... | |
uint8_t | ssd1351_advance_deinit (void) |
advance example deinit More... | |
uint8_t | ssd1351_advance_clear (void) |
advance example clear More... | |
uint8_t | ssd1351_advance_display_on (void) |
advance example display on More... | |
uint8_t | ssd1351_advance_display_off (void) |
advance example display off More... | |
uint8_t | ssd1351_advance_string (uint8_t x, uint8_t y, char *str, uint16_t len, uint32_t color, ssd1351_font_t font) |
advance example draw a string More... | |
uint8_t | ssd1351_advance_write_point (uint8_t x, uint8_t y, uint32_t color) |
advance example write a point More... | |
uint8_t | ssd1351_advance_rect (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint32_t color) |
advance example fill a rectangle More... | |
uint8_t | ssd1351_advance_draw_picture (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint32_t *img) |
advance example draw a picture More... | |
uint8_t | ssd1351_advance_draw_picture_16bits (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint16_t *img) |
advance example draw a 16 bits picture More... | |
uint8_t | ssd1351_advance_set_scroll (int8_t scroll, uint8_t start_row, uint8_t row_len, ssd1351_scroll_mode_t mode) |
advance example set scroll More... | |
uint8_t | ssd1351_advance_enable_scroll (void) |
advance example enable scroll More... | |
uint8_t | ssd1351_advance_disable_scroll (void) |
advance example disable scroll More... | |
uint8_t | ssd1351_basic_init (void) |
basic example init More... | |
uint8_t | ssd1351_basic_deinit (void) |
basic example deinit More... | |
uint8_t | ssd1351_basic_clear (void) |
basic example clear More... | |
uint8_t | ssd1351_basic_display_on (void) |
basic example display on More... | |
uint8_t | ssd1351_basic_display_off (void) |
basic example display off More... | |
uint8_t | ssd1351_basic_write_point (uint8_t x, uint8_t y, uint32_t color) |
basic example write a point More... | |
uint8_t | ssd1351_basic_string (uint8_t x, uint8_t y, char *str, uint16_t len, uint32_t color, ssd1351_font_t font) |
basic example draw a string More... | |
uint8_t | ssd1351_basic_rect (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint32_t color) |
basic example fill a rectangle More... | |
uint8_t | ssd1351_basic_draw_picture (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint32_t *img) |
basic example draw a picture More... | |
uint8_t | ssd1351_basic_draw_picture_16bits (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint16_t *img) |
basic example draw a 16 bits picture More... | |
ssd1351 example driver modules
#define SSD1351_ADVANCE_DEFAULT_ADDRESS_INCREMENT SSD1351_ADDRESS_INCREMENT_HORIZONTAL /* horizontal increment */ |
Definition at line 60 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_CLOCK_DIV 0x01 /* div 2 */ |
ssd1351 advance example default definition
Definition at line 55 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_COLOR_DEPTH SSD1351_COLOR_DEPTH_65K /* set RGB565 */ |
Definition at line 61 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_COLOR_SEQUENCE SSD1351_COLOR_SEQUENCE_C_B_A /* set sequence RGB */ |
Definition at line 63 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_COM_SPLIT_ODD_EVEN SSD1351_BOOL_TRUE /* enable split odd even */ |
Definition at line 65 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_CONTRAST_A 0xC8 /* set B contrast */ |
Definition at line 71 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_CONTRAST_B 0x80 /* set G contrast */ |
Definition at line 72 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_CONTRAST_C 0xC8 /* set R contrast */ |
Definition at line 73 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_DISPLAY_OFFSET 0x00 /* set 0 */ |
Definition at line 58 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_DISPLAY_START_LINE 0x00 /* set 0 */ |
Definition at line 59 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_GPIO0_MODE SSD1351_GPIO_PIN_INPUT_DISABLED /* disable gpio0 input */ |
Definition at line 66 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_GPIO1_MODE SSD1351_GPIO_PIN_INPUT_DISABLED /* disable gpio1 input */ |
Definition at line 67 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_MASTER_CONTRAST_CURRENT 0x0A /* set master current 0x0A */ |
Definition at line 74 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_MUX_RATIO 0x7F /* set 127 */ |
Definition at line 57 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_OSCILLATOR_FREQUENCY 0x0F /* set 0xF */ |
Definition at line 56 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_PHASE1_PERIOD 0x02 /* set phase1 period 0x02 */ |
Definition at line 75 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_PHASE2_PERIOD 0x03 /* set phase2 period 0x03 */ |
Definition at line 76 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_PRE_CHARGE_VOLTAGE 0x17 /* set pre charge voltage 0x17 */ |
Definition at line 77 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_SCAN_MODE SSD1351_SCAN_MODE_COM_N_1_COM_0 /* set scan mode com127 -com0 */ |
Definition at line 64 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_SECOND_PRE_CHARGE_PERIOD 0x01 /* set second pre-charge period 0x001 */ |
Definition at line 79 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_SEG0_MAP SSD1351_SEG0_ADDRESS_0 /* seg0 map to 0 */ |
Definition at line 62 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_SEGMENT_LOW_VOLTAGE SSD1351_SEGMENT_LOW_VOLTAGE_EXTERNAL_VSL /* set segment low voltage external VSL */ |
Definition at line 70 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_SELECT_PARALLEL SSD1351_SELECT_PARALLEL_8_BIT /* set parallel 8 bit */ |
Definition at line 69 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_SELECT_VDD SSD1351_SELECT_VDD_INTERNAL /* vdd internal */ |
Definition at line 68 of file driver_ssd1351_advance.h.
#define SSD1351_ADVANCE_DEFAULT_VCOMH_VOLTAGE 0x05 /* set vcomh voltage 0x05 */ |
Definition at line 78 of file driver_ssd1351_advance.h.
#define SSD1351_BASIC_DEFAULT_ADDRESS_INCREMENT SSD1351_ADDRESS_INCREMENT_HORIZONTAL |
horizontal increment
Definition at line 62 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_CLOCK_DIV 0x01 |
ssd1351 basic example default definition
div 2
Definition at line 57 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_COLOR_DEPTH SSD1351_COLOR_DEPTH_65K |
set RGB565
Definition at line 63 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_COLOR_SEQUENCE SSD1351_COLOR_SEQUENCE_C_B_A |
set sequence RGB
Definition at line 65 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_COM_SPLIT_ODD_EVEN SSD1351_BOOL_TRUE |
enable split odd even
Definition at line 67 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_CONTRAST_A 0xC8 |
set B contrast
Definition at line 73 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_CONTRAST_B 0x80 |
set G contrast
Definition at line 74 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_CONTRAST_C 0xC8 |
set R contrast
Definition at line 75 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_DISPLAY_OFFSET 0x00 |
set 0
Definition at line 60 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_DISPLAY_START_LINE 0x00 |
set 0
Definition at line 61 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_GPIO0_MODE SSD1351_GPIO_PIN_INPUT_DISABLED |
disable gpio0 input
Definition at line 68 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_GPIO1_MODE SSD1351_GPIO_PIN_INPUT_DISABLED |
disable gpio1 input
Definition at line 69 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_MASTER_CONTRAST_CURRENT 0x0A |
set master current 0x0A
Definition at line 76 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_MUX_RATIO 0x7F |
set 127
Definition at line 59 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_OSCILLATOR_FREQUENCY 0x0F |
set 0xF
Definition at line 58 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_PHASE1_PERIOD 0x02 |
set phase1 period 0x02
Definition at line 77 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_PHASE2_PERIOD 0x03 |
set phase2 period 0x03
Definition at line 78 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_PRE_CHARGE_VOLTAGE 0x17 |
set pre charge voltage 0x17
Definition at line 79 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_SCAN_MODE SSD1351_SCAN_MODE_COM_N_1_COM_0 |
set scan mode com127 -com0
Definition at line 66 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_SECOND_PRE_CHARGE_PERIOD 0x01 |
set second pre charge period 0x001
Definition at line 81 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_SEG0_MAP SSD1351_SEG0_ADDRESS_0 |
seg0 map to 0
Definition at line 64 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_SEGMENT_LOW_VOLTAGE SSD1351_SEGMENT_LOW_VOLTAGE_EXTERNAL_VSL |
set segment low voltage external VSL
Definition at line 72 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_SELECT_PARALLEL SSD1351_SELECT_PARALLEL_8_BIT |
set parallel 8 bit
Definition at line 71 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_SELECT_VDD SSD1351_SELECT_VDD_INTERNAL |
vdd internal
Definition at line 70 of file driver_ssd1351_basic.h.
#define SSD1351_BASIC_DEFAULT_VCOMH_VOLTAGE 0x05 |
set vcomh voltage 0x05
Definition at line 80 of file driver_ssd1351_basic.h.
uint8_t ssd1351_advance_clear | ( | void | ) |
advance example clear
Definition at line 383 of file driver_ssd1351_advance.c.
uint8_t ssd1351_advance_deinit | ( | void | ) |
advance example deinit
Definition at line 363 of file driver_ssd1351_advance.c.
uint8_t ssd1351_advance_disable_scroll | ( | void | ) |
advance example disable scroll
Definition at line 611 of file driver_ssd1351_advance.c.
uint8_t ssd1351_advance_display_off | ( | void | ) |
advance example display off
Definition at line 423 of file driver_ssd1351_advance.c.
uint8_t ssd1351_advance_display_on | ( | void | ) |
advance example display on
Definition at line 403 of file driver_ssd1351_advance.c.
uint8_t ssd1351_advance_draw_picture | ( | uint8_t | left, |
uint8_t | top, | ||
uint8_t | right, | ||
uint8_t | bottom, | ||
uint32_t * | img | ||
) |
advance example draw a picture
[in] | left | is the left coordinate x |
[in] | top | is the top coordinate y |
[in] | right | is the right coordinate x |
[in] | bottom | is the bottom coordinate y |
[in] | *img | points to a image buffer |
Definition at line 522 of file driver_ssd1351_advance.c.
uint8_t ssd1351_advance_draw_picture_16bits | ( | uint8_t | left, |
uint8_t | top, | ||
uint8_t | right, | ||
uint8_t | bottom, | ||
uint16_t * | img | ||
) |
advance example draw a 16 bits picture
[in] | left | is the left coordinate x |
[in] | top | is the top coordinate y |
[in] | right | is the right coordinate x |
[in] | bottom | is the bottom coordinate y |
[in] | *img | points to a image buffer |
Definition at line 547 of file driver_ssd1351_advance.c.
uint8_t ssd1351_advance_enable_scroll | ( | void | ) |
advance example enable scroll
Definition at line 591 of file driver_ssd1351_advance.c.
uint8_t ssd1351_advance_init | ( | void | ) |
advance example init
Definition at line 65 of file driver_ssd1351_advance.c.
uint8_t ssd1351_advance_rect | ( | uint8_t | left, |
uint8_t | top, | ||
uint8_t | right, | ||
uint8_t | bottom, | ||
uint32_t | color | ||
) |
advance example fill a rectangle
[in] | left | is the left coordinate x |
[in] | top | is the top coordinate y |
[in] | right | is the right coordinate x |
[in] | bottom | is the bottom coordinate y |
[in] | color | is the display color |
Definition at line 497 of file driver_ssd1351_advance.c.
uint8_t ssd1351_advance_set_scroll | ( | int8_t | scroll, |
uint8_t | start_row, | ||
uint8_t | row_len, | ||
ssd1351_scroll_mode_t | mode | ||
) |
advance example set scroll
[in] | scroll | is the scroll number |
[in] | start_row | is the start row |
[in] | row_len | is the scrolling row length |
[in] | mode | is the scroll mode |
Definition at line 571 of file driver_ssd1351_advance.c.
uint8_t ssd1351_advance_string | ( | uint8_t | x, |
uint8_t | y, | ||
char * | str, | ||
uint16_t | len, | ||
uint32_t | color, | ||
ssd1351_font_t | font | ||
) |
advance example draw a string
[in] | x | is the coordinate x |
[in] | y | is the coordinate y |
[in] | *str | points to a written string address |
[in] | len | is the length of the string |
[in] | color | is the display color |
[in] | font | is the display font size |
Definition at line 449 of file driver_ssd1351_advance.c.
uint8_t ssd1351_advance_write_point | ( | uint8_t | x, |
uint8_t | y, | ||
uint32_t | color | ||
) |
advance example write a point
[in] | x | is the coordinate x |
[in] | y | is the coordinate y |
[in] | color | is the written color |
Definition at line 472 of file driver_ssd1351_advance.c.
uint8_t ssd1351_basic_clear | ( | void | ) |
basic example clear
Definition at line 383 of file driver_ssd1351_basic.c.
uint8_t ssd1351_basic_deinit | ( | void | ) |
basic example deinit
Definition at line 363 of file driver_ssd1351_basic.c.
uint8_t ssd1351_basic_display_off | ( | void | ) |
basic example display off
Definition at line 423 of file driver_ssd1351_basic.c.
uint8_t ssd1351_basic_display_on | ( | void | ) |
basic example display on
Definition at line 403 of file driver_ssd1351_basic.c.
uint8_t ssd1351_basic_draw_picture | ( | uint8_t | left, |
uint8_t | top, | ||
uint8_t | right, | ||
uint8_t | bottom, | ||
uint32_t * | img | ||
) |
basic example draw a picture
[in] | left | is the left coordinate x |
[in] | top | is the top coordinate y |
[in] | right | is the right coordinate x |
[in] | bottom | is the bottom coordinate y |
[in] | *img | points to a image buffer |
Definition at line 522 of file driver_ssd1351_basic.c.
uint8_t ssd1351_basic_draw_picture_16bits | ( | uint8_t | left, |
uint8_t | top, | ||
uint8_t | right, | ||
uint8_t | bottom, | ||
uint16_t * | img | ||
) |
basic example draw a 16 bits picture
[in] | left | is the left coordinate x |
[in] | top | is the top coordinate y |
[in] | right | is the right coordinate x |
[in] | bottom | is the bottom coordinate y |
[in] | *img | points to a image buffer |
Definition at line 547 of file driver_ssd1351_basic.c.
uint8_t ssd1351_basic_init | ( | void | ) |
basic example init
Definition at line 65 of file driver_ssd1351_basic.c.
uint8_t ssd1351_basic_rect | ( | uint8_t | left, |
uint8_t | top, | ||
uint8_t | right, | ||
uint8_t | bottom, | ||
uint32_t | color | ||
) |
basic example fill a rectangle
[in] | left | is the left coordinate x |
[in] | top | is the top coordinate y |
[in] | right | is the right coordinate x |
[in] | bottom | is the bottom coordinate y |
[in] | color | is the display color |
Definition at line 497 of file driver_ssd1351_basic.c.
uint8_t ssd1351_basic_string | ( | uint8_t | x, |
uint8_t | y, | ||
char * | str, | ||
uint16_t | len, | ||
uint32_t | color, | ||
ssd1351_font_t | font | ||
) |
basic example draw a string
[in] | x | is the coordinate x |
[in] | y | is the coordinate y |
[in] | *str | points to a written string address |
[in] | len | is the length of the string |
[in] | color | is the display color |
[in] | font | is the display font size |
Definition at line 449 of file driver_ssd1351_basic.c.
uint8_t ssd1351_basic_write_point | ( | uint8_t | x, |
uint8_t | y, | ||
uint32_t | color | ||
) |
basic example write a point
[in] | x | is the coordinate x |
[in] | y | is the coordinate y |
[in] | color | is the written color |
Definition at line 472 of file driver_ssd1351_basic.c.