oledb 2.0.0.0
|
Functions | |
void | oledb_cfg_setup (oledb_cfg_t *cfg) |
Configuration Object Setup function. | |
err_t | oledb_init (oledb_t *ctx, oledb_cfg_t *cfg) |
Click Initialization function. | |
void | oledb_send_cmd (oledb_t *ctx, oledb_data_t tx_cmd) |
Send cmd function. | |
void | oledb_send_data (oledb_t *ctx, oledb_data_t *tx_data, uint8_t data_len) |
Send data function. | |
void | oledb_default_cfg (oledb_t *ctx) |
Click Default Configuration function. | |
void | oledb_set_page (oledb_t *ctx, oledb_data_t page_addr) |
Page Setting function. | |
void | oledb_set_column (oledb_t *ctx, oledb_data_t col_addr) |
Column Setting function. | |
void | oledb_display_picture (oledb_t *ctx, oledb_resources_t *pic) |
Display Picture function. | |
void | oledb_clear_display (oledb_t *ctx) |
Clear Display function. | |
void | oledb_write_char (oledb_t *ctx, uint8_t font, uint8_t row, uint8_t position, uint8_t data_in) |
Write Char function. | |
void | oledb_write_string (oledb_t *ctx, uint8_t font, uint8_t row, uint8_t position, uint8_t *data_in) |
Write String function. | |
void | oledb_set_contrast (oledb_t *ctx, oledb_data_t value) |
Contrast Setting function. | |
void | oledb_scroll_right (oledb_t *ctx, oledb_data_t start_page_addr, oledb_data_t end_page_addr) |
Scroll Right function. | |
void | oledb_scroll_left (oledb_t *ctx, oledb_data_t start_page_addr, oledb_data_t end_page_addr) |
Scroll Left function. | |
void | oledb_scroll_diag_right (oledb_t *ctx, oledb_data_t start_page_addr, oledb_data_t end_page_addr) |
Scroll Diagonally Right function. | |
void | oledb_scroll_diag_left (oledb_t *ctx, oledb_data_t start_page_addr, oledb_data_t end_page_addr) |
Scroll Diagonally Left function. | |
void | oledb_stop_scroll (oledb_t *ctx) |
Stop Scrolling function. | |
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_clear_display | ( | oledb_t * | ctx | ) |
Clear Display function.
This function clears SSD1306 controller display.
[in] | ctx | Click object. |
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 on the screen.
[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. |
void oledb_send_cmd | ( | oledb_t * | ctx, |
oledb_data_t | tx_cmd ) |
Send cmd function.
This function sends commands to OLED B click.
[in] | ctx | Click object. |
[in] | tx_cmd | Command to be sent. |
void oledb_send_data | ( | oledb_t * | ctx, |
oledb_data_t * | tx_data, | ||
uint8_t | data_len ) |
Send data function.
This function sends data to OLED B click.
[in] | ctx | Click object. |
[in] | tx_data | Data to be sent. |
[in] | data_len | Number of data bytes. |
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. |
void oledb_write_char | ( | oledb_t * | ctx, |
uint8_t | font, | ||
uint8_t | row, | ||
uint8_t | position, | ||
uint8_t | data_in ) |
Write Char function.
This function writes a single character on the selected position in a 5x7 or 6x8 font size.
[in] | ctx | Click object. |
[in] | font | 0 - 5x7 font, 1 - 6x8 font. |
[in] | row | Display row (0-4). |
[in] | position | Char position in a row (0-((128/char_width)-1)). |
[in] | data_in | Character to write (ASCII 32-127). |
void oledb_write_string | ( | oledb_t * | ctx, |
uint8_t | font, | ||
uint8_t | row, | ||
uint8_t | position, | ||
uint8_t * | data_in ) |
Write String function.
This function writes a text string from the selected position in a 5x7 or 6x8 font size.
[in] | ctx | Click object. |
[in] | font | 0 - 5x7 font, 1 - 6x8 font. |
[in] | row | Display row (0-4). |
[in] | position | Char position in a row (0-((128/char_width)-1)). |
[in] | data_in | Text string to write. |