LibDriver SSD1309
Loading...
Searching...
No Matches
ssd1309 example driver function

ssd1309 example driver modules More...

Collaboration diagram for ssd1309 example driver function:

Macros

#define SSD1309_ADVANCE_DEFAULT_DESELECT_LEVEL   SSD1309_DESELECT_LEVEL_0P78
 ssd1309 advance example default definition
#define SSD1309_ADVANCE_DEFAULT_LEFT_RIGHT_REMAP   SSD1309_LEFT_RIGHT_REMAP_DISABLE
#define SSD1309_ADVANCE_DEFAULT_PIN_CONF   SSD1309_PIN_CONF_ALTERNATIVE
#define SSD1309_ADVANCE_DEFAULT_PHASE1_PERIOD   0x01
#define SSD1309_ADVANCE_DEFAULT_PHASE2_PERIOD   0x0F
#define SSD1309_ADVANCE_DEFAULT_OSCILLATOR_FREQUENCY   0x08
#define SSD1309_ADVANCE_DEFAULT_CLOCK_DIVIDE   0x00
#define SSD1309_ADVANCE_DEFAULT_DISPLAY_OFFSET   0x00
#define SSD1309_ADVANCE_DEFAULT_MULTIPLEX_RATIO   0x3F
#define SSD1309_ADVANCE_DEFAULT_DISPLAY_MODE   SSD1309_DISPLAY_MODE_NORMAL
#define SSD1309_ADVANCE_DEFAULT_SCAN_DIRECTION   SSD1309_SCAN_DIRECTION_COMN_1_START
#define SSD1309_ADVANCE_DEFAULT_SEGMENT   SSD1309_SEGMENT_COLUMN_ADDRESS_127
#define SSD1309_ADVANCE_DEFAULT_CONTRAST   0xCF
#define SSD1309_ADVANCE_DEFAULT_GPIO_CONFIG   SSD1309_GPIO_OUTPUT_LOW
#define SSD1309_ADVANCE_DEFAULT_DISPLAY_START_LINE   0x00
#define SSD1309_ADVANCE_DEFAULT_HIGH_COLUMN_START_ADDRESS   0x00
#define SSD1309_ADVANCE_DEFAULT_LOW_COLUMN_START_ADDRESS   0x00
#define SSD1309_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_START   0x00
#define SSD1309_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_END   0x07
#define SSD1309_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_START   0x00
#define SSD1309_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_END   0x7F
#define SSD1309_BASIC_DEFAULT_DESELECT_LEVEL   SSD1309_DESELECT_LEVEL_0P78
 ssd1309 basic example default definition
#define SSD1309_BASIC_DEFAULT_LEFT_RIGHT_REMAP   SSD1309_LEFT_RIGHT_REMAP_DISABLE
#define SSD1309_BASIC_DEFAULT_PIN_CONF   SSD1309_PIN_CONF_ALTERNATIVE
#define SSD1309_BASIC_DEFAULT_PHASE1_PERIOD   0x01
#define SSD1309_BASIC_DEFAULT_PHASE2_PERIOD   0x0F
#define SSD1309_BASIC_DEFAULT_OSCILLATOR_FREQUENCY   0x08
#define SSD1309_BASIC_DEFAULT_CLOCK_DIVIDE   0x00
#define SSD1309_BASIC_DEFAULT_DISPLAY_OFFSET   0x00
#define SSD1309_BASIC_DEFAULT_MULTIPLEX_RATIO   0x3F
#define SSD1309_BASIC_DEFAULT_DISPLAY_MODE   SSD1309_DISPLAY_MODE_NORMAL
#define SSD1309_BASIC_DEFAULT_SCAN_DIRECTION   SSD1309_SCAN_DIRECTION_COMN_1_START
#define SSD1309_BASIC_DEFAULT_SEGMENT   SSD1309_SEGMENT_COLUMN_ADDRESS_127
#define SSD1309_BASIC_DEFAULT_CONTRAST   0xCF
#define SSD1309_BASIC_DEFAULT_GPIO_CONFIG   SSD1309_GPIO_OUTPUT_LOW
#define SSD1309_BASIC_DEFAULT_DISPLAY_START_LINE   0x00
#define SSD1309_BASIC_DEFAULT_HIGH_COLUMN_START_ADDRESS   0x00
#define SSD1309_BASIC_DEFAULT_LOW_COLUMN_START_ADDRESS   0x00
#define SSD1309_BASIC_DEFAULT_PAGE_ADDRESS_RANGE_START   0x00
#define SSD1309_BASIC_DEFAULT_PAGE_ADDRESS_RANGE_END   0x07
#define SSD1309_BASIC_DEFAULT_COLUMN_ADDRESS_RANGE_START   0x00
#define SSD1309_BASIC_DEFAULT_COLUMN_ADDRESS_RANGE_END   0x7F

Functions

uint8_t ssd1309_advance_init (ssd1309_interface_t interface, ssd1309_address_t addr)
 advance example init
uint8_t ssd1309_advance_deinit (void)
 advance example deinit
uint8_t ssd1309_advance_display_on (void)
 advance example display on
uint8_t ssd1309_advance_display_off (void)
 advance example display off
uint8_t ssd1309_advance_clear (void)
 advance example clear
uint8_t ssd1309_advance_write_point (uint8_t x, uint8_t y, uint8_t data)
 advance example write a point
uint8_t ssd1309_advance_read_point (uint8_t x, uint8_t y, uint8_t *data)
 advance example read a point
uint8_t ssd1309_advance_string (uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t color, ssd1309_font_t font)
 advance example draw a string
uint8_t ssd1309_advance_rect (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color)
 advance example fill a rectangle
uint8_t ssd1309_advance_picture (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
 advance example draw a picture
uint8_t ssd1309_advance_deactivate_scroll (void)
 advance example deactivate the scroll
uint8_t ssd1309_advance_vertical_left_horizontal_scroll (ssd1309_bool_t horizontal_scroll, uint8_t start_page_addr, uint8_t end_page_addr, uint8_t rows, ssd1309_scroll_frame_t frames, uint8_t start_column_addr, uint8_t end_column_addr)
 advance example enable the left horizontal scroll
uint8_t ssd1309_advance_vertical_right_horizontal_scroll (ssd1309_bool_t horizontal_scroll, uint8_t start_page_addr, uint8_t end_page_addr, uint8_t rows, ssd1309_scroll_frame_t frames, uint8_t start_column_addr, uint8_t end_column_addr)
 advance example enable the right horizontal scroll
uint8_t ssd1309_basic_init (ssd1309_interface_t interface, ssd1309_address_t addr)
 basic example init
uint8_t ssd1309_basic_deinit (void)
 basic example deinit
uint8_t ssd1309_basic_display_on (void)
 basic example display on
uint8_t ssd1309_basic_display_off (void)
 basic example display off
uint8_t ssd1309_basic_clear (void)
 basic example clear
uint8_t ssd1309_basic_write_point (uint8_t x, uint8_t y, uint8_t data)
 basic example write a point
uint8_t ssd1309_basic_read_point (uint8_t x, uint8_t y, uint8_t *data)
 basic example read a point
uint8_t ssd1309_basic_string (uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t color, ssd1309_font_t font)
 basic example draw a string
uint8_t ssd1309_basic_rect (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color)
 basic example fill a rectangle
uint8_t ssd1309_basic_picture (uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
 basic example draw a picture

Detailed Description

ssd1309 example driver modules

Macro Definition Documentation

◆ SSD1309_ADVANCE_DEFAULT_CLOCK_DIVIDE

#define SSD1309_ADVANCE_DEFAULT_CLOCK_DIVIDE   0x00

set clock div 0

Definition at line 60 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_END

#define SSD1309_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_END   0x7F

set range end

Definition at line 74 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_START

#define SSD1309_ADVANCE_DEFAULT_COLUMN_ADDRESS_RANGE_START   0x00

set range start

Definition at line 73 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_CONTRAST

#define SSD1309_ADVANCE_DEFAULT_CONTRAST   0xCF

set contrast 0xCF

Definition at line 66 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_DESELECT_LEVEL

#define SSD1309_ADVANCE_DEFAULT_DESELECT_LEVEL   SSD1309_DESELECT_LEVEL_0P78

ssd1309 advance example default definition

set deselect level 0.78

Definition at line 54 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_DISPLAY_MODE

#define SSD1309_ADVANCE_DEFAULT_DISPLAY_MODE   SSD1309_DISPLAY_MODE_NORMAL

set normal mode

Definition at line 63 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_DISPLAY_OFFSET

#define SSD1309_ADVANCE_DEFAULT_DISPLAY_OFFSET   0x00

set display offset

Definition at line 61 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_DISPLAY_START_LINE

#define SSD1309_ADVANCE_DEFAULT_DISPLAY_START_LINE   0x00

set start line 0

Definition at line 68 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_GPIO_CONFIG

#define SSD1309_ADVANCE_DEFAULT_GPIO_CONFIG   SSD1309_GPIO_OUTPUT_LOW

output low

Definition at line 67 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_HIGH_COLUMN_START_ADDRESS

#define SSD1309_ADVANCE_DEFAULT_HIGH_COLUMN_START_ADDRESS   0x00

set high start 0

Definition at line 69 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_LEFT_RIGHT_REMAP

#define SSD1309_ADVANCE_DEFAULT_LEFT_RIGHT_REMAP   SSD1309_LEFT_RIGHT_REMAP_DISABLE

disable remap

Definition at line 55 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_LOW_COLUMN_START_ADDRESS

#define SSD1309_ADVANCE_DEFAULT_LOW_COLUMN_START_ADDRESS   0x00

set low start 0

Definition at line 70 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_MULTIPLEX_RATIO

#define SSD1309_ADVANCE_DEFAULT_MULTIPLEX_RATIO   0x3F

set ratio

Definition at line 62 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_OSCILLATOR_FREQUENCY

#define SSD1309_ADVANCE_DEFAULT_OSCILLATOR_FREQUENCY   0x08

set 8

Definition at line 59 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_END

#define SSD1309_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_END   0x07

set page range end

Definition at line 72 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_START

#define SSD1309_ADVANCE_DEFAULT_PAGE_ADDRESS_RANGE_START   0x00

set page range start

Definition at line 71 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_PHASE1_PERIOD

#define SSD1309_ADVANCE_DEFAULT_PHASE1_PERIOD   0x01

set phase 1

Definition at line 57 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_PHASE2_PERIOD

#define SSD1309_ADVANCE_DEFAULT_PHASE2_PERIOD   0x0F

set phase F

Definition at line 58 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_PIN_CONF

#define SSD1309_ADVANCE_DEFAULT_PIN_CONF   SSD1309_PIN_CONF_ALTERNATIVE

set alternative

Definition at line 56 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_SCAN_DIRECTION

#define SSD1309_ADVANCE_DEFAULT_SCAN_DIRECTION   SSD1309_SCAN_DIRECTION_COMN_1_START

set scan 1

Definition at line 64 of file driver_ssd1309_advance.h.

◆ SSD1309_ADVANCE_DEFAULT_SEGMENT

#define SSD1309_ADVANCE_DEFAULT_SEGMENT   SSD1309_SEGMENT_COLUMN_ADDRESS_127

set column 127

Definition at line 65 of file driver_ssd1309_advance.h.

◆ SSD1309_BASIC_DEFAULT_CLOCK_DIVIDE

#define SSD1309_BASIC_DEFAULT_CLOCK_DIVIDE   0x00

set clock div 0

Definition at line 62 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_COLUMN_ADDRESS_RANGE_END

#define SSD1309_BASIC_DEFAULT_COLUMN_ADDRESS_RANGE_END   0x7F

set range end

Definition at line 76 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_COLUMN_ADDRESS_RANGE_START

#define SSD1309_BASIC_DEFAULT_COLUMN_ADDRESS_RANGE_START   0x00

set range start

Definition at line 75 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_CONTRAST

#define SSD1309_BASIC_DEFAULT_CONTRAST   0xCF

set contrast 0xCF

Definition at line 68 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_DESELECT_LEVEL

#define SSD1309_BASIC_DEFAULT_DESELECT_LEVEL   SSD1309_DESELECT_LEVEL_0P78

ssd1309 basic example default definition

set deselect level 0.78

Definition at line 56 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_DISPLAY_MODE

#define SSD1309_BASIC_DEFAULT_DISPLAY_MODE   SSD1309_DISPLAY_MODE_NORMAL

set normal mode

Definition at line 65 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_DISPLAY_OFFSET

#define SSD1309_BASIC_DEFAULT_DISPLAY_OFFSET   0x00

set display offset

Definition at line 63 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_DISPLAY_START_LINE

#define SSD1309_BASIC_DEFAULT_DISPLAY_START_LINE   0x00

set start line 0

Definition at line 70 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_GPIO_CONFIG

#define SSD1309_BASIC_DEFAULT_GPIO_CONFIG   SSD1309_GPIO_OUTPUT_LOW

output low

Definition at line 69 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_HIGH_COLUMN_START_ADDRESS

#define SSD1309_BASIC_DEFAULT_HIGH_COLUMN_START_ADDRESS   0x00

set high start 0

Definition at line 71 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_LEFT_RIGHT_REMAP

#define SSD1309_BASIC_DEFAULT_LEFT_RIGHT_REMAP   SSD1309_LEFT_RIGHT_REMAP_DISABLE

disable remap

Definition at line 57 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_LOW_COLUMN_START_ADDRESS

#define SSD1309_BASIC_DEFAULT_LOW_COLUMN_START_ADDRESS   0x00

set low start 0

Definition at line 72 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_MULTIPLEX_RATIO

#define SSD1309_BASIC_DEFAULT_MULTIPLEX_RATIO   0x3F

set ratio

Definition at line 64 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_OSCILLATOR_FREQUENCY

#define SSD1309_BASIC_DEFAULT_OSCILLATOR_FREQUENCY   0x08

set 8

Definition at line 61 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_PAGE_ADDRESS_RANGE_END

#define SSD1309_BASIC_DEFAULT_PAGE_ADDRESS_RANGE_END   0x07

set page range end

Definition at line 74 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_PAGE_ADDRESS_RANGE_START

#define SSD1309_BASIC_DEFAULT_PAGE_ADDRESS_RANGE_START   0x00

set page range start

Definition at line 73 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_PHASE1_PERIOD

#define SSD1309_BASIC_DEFAULT_PHASE1_PERIOD   0x01

set phase 1

Definition at line 59 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_PHASE2_PERIOD

#define SSD1309_BASIC_DEFAULT_PHASE2_PERIOD   0x0F

set phase F

Definition at line 60 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_PIN_CONF

#define SSD1309_BASIC_DEFAULT_PIN_CONF   SSD1309_PIN_CONF_ALTERNATIVE

set alternative

Definition at line 58 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_SCAN_DIRECTION

#define SSD1309_BASIC_DEFAULT_SCAN_DIRECTION   SSD1309_SCAN_DIRECTION_COMN_1_START

set scan 1

Definition at line 66 of file driver_ssd1309_basic.h.

◆ SSD1309_BASIC_DEFAULT_SEGMENT

#define SSD1309_BASIC_DEFAULT_SEGMENT   SSD1309_SEGMENT_COLUMN_ADDRESS_127

set column 127

Definition at line 67 of file driver_ssd1309_basic.h.

Function Documentation

◆ ssd1309_advance_clear()

uint8_t ssd1309_advance_clear ( void )

advance example clear

Returns
status code
  • 0 success
  • 1 clear failed
Note
none

Definition at line 398 of file driver_ssd1309_advance.c.

Here is the call graph for this function:

◆ ssd1309_advance_deactivate_scroll()

uint8_t ssd1309_advance_deactivate_scroll ( void )

advance example deactivate the scroll

Returns
status code
  • 0 success
  • 1 deactivate scroll failed
Note
none

Definition at line 561 of file driver_ssd1309_advance.c.

Here is the call graph for this function:

◆ ssd1309_advance_deinit()

uint8_t ssd1309_advance_deinit ( void )

advance example deinit

Returns
status code
  • 0 success
  • 1 deinit failed
Note
none

Definition at line 338 of file driver_ssd1309_advance.c.

Here is the call graph for this function:

◆ ssd1309_advance_display_off()

uint8_t ssd1309_advance_display_off ( void )

advance example display off

Returns
status code
  • 0 success
  • 1 display off failed
Note
none

Definition at line 377 of file driver_ssd1309_advance.c.

Here is the call graph for this function:

◆ ssd1309_advance_display_on()

uint8_t ssd1309_advance_display_on ( void )

advance example display on

Returns
status code
  • 0 success
  • 1 display on failed
Note
none

Definition at line 356 of file driver_ssd1309_advance.c.

Here is the call graph for this function:

◆ ssd1309_advance_init()

uint8_t ssd1309_advance_init ( ssd1309_interface_t interface,
ssd1309_address_t addr )

advance example init

Parameters
[in]interfaceinterface type
[in]addriic device address
Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 50 of file driver_ssd1309_advance.c.

Here is the call graph for this function:

◆ ssd1309_advance_picture()

uint8_t ssd1309_advance_picture ( uint8_t left,
uint8_t top,
uint8_t right,
uint8_t bottom,
uint8_t * img )

advance example draw a picture

Parameters
[in]leftleft coordinate x
[in]toptop coordinate y
[in]rightright coordinate x
[in]bottombottom coordinate y
[in]*imgpointer to a image buffer
Returns
status code
  • 0 success
  • 1 draw picture failed
Note
none

Definition at line 534 of file driver_ssd1309_advance.c.

Here is the call graph for this function:

◆ ssd1309_advance_read_point()

uint8_t ssd1309_advance_read_point ( uint8_t x,
uint8_t y,
uint8_t * data )

advance example read a point

Parameters
[in]xcoordinate x
[in]ycoordinate y
[out]*datapointer to a data buffer
Returns
status code
  • 0 success
  • 1 read point failed
Note
none

Definition at line 443 of file driver_ssd1309_advance.c.

Here is the call graph for this function:

◆ ssd1309_advance_rect()

uint8_t ssd1309_advance_rect ( uint8_t left,
uint8_t top,
uint8_t right,
uint8_t bottom,
uint8_t color )

advance example fill a rectangle

Parameters
[in]leftleft coordinate x
[in]toptop coordinate y
[in]rightright coordinate x
[in]bottombottom coordinate y
[in]colordisplay color
Returns
status code
  • 0 success
  • 1 fill rect failed
Note
none

Definition at line 502 of file driver_ssd1309_advance.c.

Here is the call graph for this function:

◆ ssd1309_advance_string()

uint8_t ssd1309_advance_string ( uint8_t x,
uint8_t y,
char * str,
uint16_t len,
uint8_t color,
ssd1309_font_t font )

advance example draw a string

Parameters
[in]xcoordinate x
[in]ycoordinate y
[in]*strpointer to a written string address
[in]lenlength of the string
[in]colordisplay color
[in]fontdisplay font size
Returns
status code
  • 0 success
  • 1 write string failed
Note
none

Definition at line 470 of file driver_ssd1309_advance.c.

Here is the call graph for this function:

◆ ssd1309_advance_vertical_left_horizontal_scroll()

uint8_t ssd1309_advance_vertical_left_horizontal_scroll ( ssd1309_bool_t horizontal_scroll,
uint8_t start_page_addr,
uint8_t end_page_addr,
uint8_t rows,
ssd1309_scroll_frame_t frames,
uint8_t start_column_addr,
uint8_t end_column_addr )

advance example enable the left horizontal scroll

Parameters
[in]horizontal_scrollbool value
[in]start_page_addrstart page address
[in]end_page_addrend page address
[in]rowsrow address
[in]framesscroll frames
[in]start_column_addrstart column address
[in]end_column_addrend column address
Returns
status code
  • 0 success
  • 1 enable left horizontal scroll failed
Note
start_page_addr <= 0x07 end_page_addr <= 0x07 rows <= 0x3F start_column_addr <= 0x7F end_column_addr <= 0x7F

Definition at line 593 of file driver_ssd1309_advance.c.

Here is the call graph for this function:

◆ ssd1309_advance_vertical_right_horizontal_scroll()

uint8_t ssd1309_advance_vertical_right_horizontal_scroll ( ssd1309_bool_t horizontal_scroll,
uint8_t start_page_addr,
uint8_t end_page_addr,
uint8_t rows,
ssd1309_scroll_frame_t frames,
uint8_t start_column_addr,
uint8_t end_column_addr )

advance example enable the right horizontal scroll

Parameters
[in]horizontal_scrollbool value
[in]start_page_addrstart page address
[in]end_page_addrend page address
[in]rowsrow address
[in]framesscroll frames
[in]start_column_addrstart column address
[in]end_column_addrend column address
Returns
status code
  • 0 success
  • 1 enable right horizontal scroll failed
Note
start_page_addr <= 0x07 end_page_addr <= 0x07 rows <= 0x3F start_column_addr <= 0x7F end_column_addr <= 0x7F

Definition at line 642 of file driver_ssd1309_advance.c.

Here is the call graph for this function:

◆ ssd1309_advance_write_point()

uint8_t ssd1309_advance_write_point ( uint8_t x,
uint8_t y,
uint8_t data )

advance example write a point

Parameters
[in]xcoordinate x
[in]ycoordinate y
[in]datawritten data
Returns
status code
  • 0 success
  • 1 write point failed
Note
none

Definition at line 419 of file driver_ssd1309_advance.c.

Here is the call graph for this function:

◆ ssd1309_basic_clear()

uint8_t ssd1309_basic_clear ( void )

basic example clear

Returns
status code
  • 0 success
  • 1 clear failed
Note
none

Definition at line 398 of file driver_ssd1309_basic.c.

Here is the call graph for this function:

◆ ssd1309_basic_deinit()

uint8_t ssd1309_basic_deinit ( void )

basic example deinit

Returns
status code
  • 0 success
  • 1 deinit failed
Note
none

Definition at line 338 of file driver_ssd1309_basic.c.

Here is the call graph for this function:

◆ ssd1309_basic_display_off()

uint8_t ssd1309_basic_display_off ( void )

basic example display off

Returns
status code
  • 0 success
  • 1 display off failed
Note
none

Definition at line 377 of file driver_ssd1309_basic.c.

Here is the call graph for this function:

◆ ssd1309_basic_display_on()

uint8_t ssd1309_basic_display_on ( void )

basic example display on

Returns
status code
  • 0 success
  • 1 display on failed
Note
none

Definition at line 356 of file driver_ssd1309_basic.c.

Here is the call graph for this function:

◆ ssd1309_basic_init()

uint8_t ssd1309_basic_init ( ssd1309_interface_t interface,
ssd1309_address_t addr )

basic example init

Parameters
[in]interfaceinterface type
[in]addriic device address
Returns
status code
  • 0 success
  • 1 init failed
Note
none

Definition at line 50 of file driver_ssd1309_basic.c.

Here is the call graph for this function:

◆ ssd1309_basic_picture()

uint8_t ssd1309_basic_picture ( uint8_t left,
uint8_t top,
uint8_t right,
uint8_t bottom,
uint8_t * img )

basic example draw a picture

Parameters
[in]leftleft coordinate x
[in]toptop coordinate y
[in]rightright coordinate x
[in]bottombottom coordinate y
[in]*imgpointer to a image buffer
Returns
status code
  • 0 success
  • 1 draw picture failed
Note
none

Definition at line 534 of file driver_ssd1309_basic.c.

Here is the call graph for this function:

◆ ssd1309_basic_read_point()

uint8_t ssd1309_basic_read_point ( uint8_t x,
uint8_t y,
uint8_t * data )

basic example read a point

Parameters
[in]xcoordinate x
[in]ycoordinate y
[out]*datapointer to a data buffer
Returns
status code
  • 0 success
  • 1 read point failed
Note
none

Definition at line 443 of file driver_ssd1309_basic.c.

Here is the call graph for this function:

◆ ssd1309_basic_rect()

uint8_t ssd1309_basic_rect ( uint8_t left,
uint8_t top,
uint8_t right,
uint8_t bottom,
uint8_t color )

basic example fill a rectangle

Parameters
[in]leftleft coordinate x
[in]toptop coordinate y
[in]rightright coordinate x
[in]bottombottom coordinate y
[in]colordisplay color
Returns
status code
  • 0 success
  • 1 fill rect failed
Note
none

Definition at line 502 of file driver_ssd1309_basic.c.

Here is the call graph for this function:

◆ ssd1309_basic_string()

uint8_t ssd1309_basic_string ( uint8_t x,
uint8_t y,
char * str,
uint16_t len,
uint8_t color,
ssd1309_font_t font )

basic example draw a string

Parameters
[in]xcoordinate x
[in]ycoordinate y
[in]*strpointer to a written string address
[in]lenlength of the string
[in]colordisplay color
[in]fontdisplay font size
Returns
status code
  • 0 success
  • 1 write string failed
Note
none

Definition at line 470 of file driver_ssd1309_basic.c.

Here is the call graph for this function:

◆ ssd1309_basic_write_point()

uint8_t ssd1309_basic_write_point ( uint8_t x,
uint8_t y,
uint8_t data )

basic example write a point

Parameters
[in]xcoordinate x
[in]ycoordinate y
[in]datawritten data
Returns
status code
  • 0 success
  • 1 write point failed
Note
none

Definition at line 419 of file driver_ssd1309_basic.c.

Here is the call graph for this function: