oledb
2.0.0.0
|
Functions | |
void | oledb_cfg_setup (oledb_cfg_t *cfg) |
Configuration Object Setup function. More... | |
err_t | oledb_init (oledb_t *ctx, oledb_cfg_t *cfg) |
Click Initialization function. More... | |
err_t | oledb_send (oledb_t *ctx, oledb_data_t tx_data, oledb_data_mode_t data_mode) |
Send function. More... | |
void | oledb_default_cfg (oledb_t *ctx) |
Click Default Configuration function. More... | |
void | oledb_set_page (oledb_t *ctx, oledb_data_t page_addr) |
Page Setting function. More... | |
void | oledb_set_column (oledb_t *ctx, oledb_data_t col_addr) |
Column Setting function. More... | |
void | oledb_display_picture (oledb_t *ctx, oledb_resources_t *pic) |
Display Picture function. More... | |
void | oledb_set_contrast (oledb_t *ctx, oledb_data_t value) |
Contrast Setting function. More... | |
void | oledb_scroll_right (oledb_t *ctx, oledb_data_t start_page_addr, oledb_data_t end_page_addr) |
Scroll Right function. More... | |
void | oledb_scroll_left (oledb_t *ctx, oledb_data_t start_page_addr, oledb_data_t end_page_addr) |
Scroll Left function. More... | |
void | oledb_scroll_diag_right (oledb_t *ctx, oledb_data_t start_page_addr, oledb_data_t end_page_addr) |
Scroll Diagonally Right function. More... | |
void | oledb_scroll_diag_left (oledb_t *ctx, oledb_data_t start_page_addr, oledb_data_t end_page_addr) |
Scroll Diagonally Left function. More... | |
void | oledb_stop_scroll (oledb_t *ctx) |
Stop Scrolling function. More... | |
void oledb_cfg_setup | ( | oledb_cfg_t * | cfg | ) |
Configuration Object Setup function.
This function initializes click configuration structure to initial state.
[in] | cfg | Click configuration structure. |
void oledb_default_cfg | ( | oledb_t * | ctx | ) |
Click Default Configuration function.
This function configures OLED B click to default state.
[in] | ctx | Click object. |
void oledb_display_picture | ( | oledb_t * | ctx, |
oledb_resources_t * | pic | ||
) |
Display Picture function.
This function allows user to display picture for page addressing mode.
[in] | ctx | Click object. |
[in] | pic | Resource code. |
err_t oledb_init | ( | oledb_t * | ctx, |
oledb_cfg_t * | cfg | ||
) |
Click Initialization function.
[in] | ctx | Click object. |
[in] | cfg | Click configuration structure. |
This function initializes all necessary peripherals and pins.
void oledb_scroll_diag_left | ( | oledb_t * | ctx, |
oledb_data_t | start_page_addr, | ||
oledb_data_t | end_page_addr | ||
) |
Scroll Diagonally Left function.
This function scrolls the display diagonally to the left.
[in] | ctx | Click object. |
[in] | start_page_addr | Start page address. |
[in] | end_page_addr | End page address. |
void oledb_scroll_diag_right | ( | oledb_t * | ctx, |
oledb_data_t | start_page_addr, | ||
oledb_data_t | end_page_addr | ||
) |
Scroll Diagonally Right function.
This function scrolls the display diagonally to the right.
[in] | ctx | Click object. |
[in] | start_page_addr | Start page address. |
[in] | end_page_addr | End page address. |
void oledb_scroll_left | ( | oledb_t * | ctx, |
oledb_data_t | start_page_addr, | ||
oledb_data_t | end_page_addr | ||
) |
Scroll Left function.
This function scrolls the display to the left.
[in] | ctx | Click object. |
[in] | start_page_addr | Start page address. |
[in] | end_page_addr | End page address. |
void oledb_scroll_right | ( | oledb_t * | ctx, |
oledb_data_t | start_page_addr, | ||
oledb_data_t | end_page_addr | ||
) |
Scroll Right function.
This function scrolls the display to the right.
[in] | ctx | Click object. |
[in] | start_page_addr | Start page address. |
[in] | end_page_addr | End page address. |
err_t oledb_send | ( | oledb_t * | ctx, |
oledb_data_t | tx_data, | ||
oledb_data_mode_t | data_mode | ||
) |
Send function.
This function sends commands or data to OLED B click.
[in] | ctx | Click object. |
[in] | tx_data | Data to be sent. |
[in] | data_mode | 0x3C - Command, 0x3D - Data. |
void oledb_set_column | ( | oledb_t * | ctx, |
oledb_data_t | col_addr | ||
) |
Column Setting function.
This function sets column address for page addressing mode.
[in] | ctx | Click object. |
[in] | col_addr | Column address. |
void oledb_set_contrast | ( | oledb_t * | ctx, |
oledb_data_t | value | ||
) |
Contrast Setting function.
This function sets the display contrast level (0 to 255).
[in] | ctx | Click object. |
[in] | value | Contrast value to be set. |
void oledb_set_page | ( | oledb_t * | ctx, |
oledb_data_t | page_addr | ||
) |
Page Setting function.
This function sets page address for page addressing mode.
[in] | ctx | Click object. |
[in] | page_addr | Page address. |
void oledb_stop_scroll | ( | oledb_t * | ctx | ) |
Stop Scrolling function.
This function allows user to stop the scrolling motion.
[in] | ctx | Click object. |