oledswitch 2.0.0.0
|
Functions | |
void | oledswitch_cfg_setup (oledswitch_cfg_t *cfg) |
Config Object Initialization function. | |
OLEDSWITCH_RETVAL | oledswitch_init (oledswitch_t *ctx, oledswitch_cfg_t *cfg) |
Initialization function. | |
void | oledswitch_default_cfg (oledswitch_t *ctx, uint8_t buffer_size) |
Click Default Configuration function. | |
void | oledswitch_reg_write (oledswitch_t *ctx, uint8_t *write_buf, uint8_t len) |
Register write function. | |
void | oledswitch_draw_image (oledswitch_t *ctx, const uint8_t *image_buf, uint16_t image_size) |
Register write function. | |
void | oledswitch_set_contrast (oledswitch_t *ctx) |
Set contrast function. | |
void | oledswitch_set_master_current (oledswitch_t *ctx) |
Set master current function. | |
void | oledswitch_set_remap_color_depth (oledswitch_t *ctx) |
Set remap color depth function. | |
void | oledswitch_set_display_start_line (oledswitch_t *ctx) |
Set display start line function. | |
void | oledswitch_set_display_offset (oledswitch_t *ctx) |
Set display offset function. | |
void | oledswitch_set_normal_display (oledswitch_t *ctx) |
Set normal display function. | |
void | oledswitch_set_multiplex_ratio (oledswitch_t *ctx) |
Set multiplex ratio function. | |
void | oledswitch_set_dim_mode (oledswitch_t *ctx) |
Set dim mode function. | |
void | oledswitch_set_master_config (oledswitch_t *ctx) |
Set master config function. | |
void | oledswitch_set_power_save_mode (oledswitch_t *ctx) |
Set power save mode function. | |
void | oledswitch_set_phase_period_adjustment (oledswitch_t *ctx) |
Set phase period adjustment function. | |
void | oledswitch_display_clock_divider_oscillator_frequency (oledswitch_t *ctx) |
Display clock divider oscillator frequency function. | |
void | oledswitch_enable_linear_gray_scale (oledswitch_t *ctx) |
Enable linear gray scale function. | |
void | oledswitch_pre_charge_level (oledswitch_t *ctx) |
Set pre-charge level function. | |
void | oledswitch_set_vcomh (oledswitch_t *ctx) |
Set vcomh function. | |
void | oledswitch_display_normal_mode (oledswitch_t *ctx) |
Display normal mode function. | |
void | oledswitch_set_row_range (oledswitch_t *ctx, uint8_t start, uint8_t end) |
Set row range function. | |
void | oledswitch_set_column_range (oledswitch_t *ctx, uint8_t start, uint8_t end) |
Set column range function. | |
void | oledswitch_clear_window (oledswitch_t *ctx) |
Clear window function. | |
void | oledswitch_deactivate_scrolling (oledswitch_t *ctx) |
Deactivate scrolling function. | |
void | oledswitch_activate_scrolling (oledswitch_t *ctx) |
Activate scrolling function. | |
void | oledswitch_demo_scrolling_setup (oledswitch_t *ctx) |
Demo scroling setup function. | |
void | oledswitch_software_reset (oledswitch_t *ctx) |
Software reset function. | |
void | oledswitch_digital_write_pwm (oledswitch_t *ctx, uint8_t signal) |
Digital write pwm function. | |
void | oledswitch_digital_write_rst (oledswitch_t *ctx, uint8_t signal) |
Digital write reset function. | |
void oledswitch_activate_scrolling | ( | oledswitch_t * | ctx | ) |
Activate scrolling function.
ctx | Click object. |
@description This function writes the activate scrolling command to the chip.
void oledswitch_cfg_setup | ( | oledswitch_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void oledswitch_clear_window | ( | oledswitch_t * | ctx | ) |
Clear window function.
ctx | Click object. |
@description This function writes the clear display command and sends row and column data to the chip.
void oledswitch_deactivate_scrolling | ( | oledswitch_t * | ctx | ) |
Deactivate scrolling function.
ctx | Click object. |
@description This function writes the deactivate scrolling command to the chip.
void oledswitch_default_cfg | ( | oledswitch_t * | ctx, |
uint8_t | buffer_size ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for OLED Switch click.
void oledswitch_demo_scrolling_setup | ( | oledswitch_t * | ctx | ) |
Demo scroling setup function.
ctx | Click object. |
@description This function writes the scrolling setup configuration to the chip.
void oledswitch_digital_write_pwm | ( | oledswitch_t * | ctx, |
uint8_t | signal ) |
Digital write pwm function.
ctx | Click object. |
@description This function sets the digital output signal for the PWM pin.
void oledswitch_digital_write_rst | ( | oledswitch_t * | ctx, |
uint8_t | signal ) |
Digital write reset function.
ctx | Click object. |
@description This function sets the digital output signal for the RST pin.
void oledswitch_display_clock_divider_oscillator_frequency | ( | oledswitch_t * | ctx | ) |
Display clock divider oscillator frequency function.
ctx | Click object. |
@description This function writes display clock divider oscillator frequency configuration data to the chip.
void oledswitch_display_normal_mode | ( | oledswitch_t * | ctx | ) |
Display normal mode function.
ctx | Click object. |
@description This function writes display mode configuration data to the chip.
void oledswitch_draw_image | ( | oledswitch_t * | ctx, |
const uint8_t * | image_buf, | ||
uint16_t | image_size ) |
Register write function.
ctx | Click object. |
image_buf | Pointer to a image array that will be displayed. |
image_size | Number of bytes in the image array. |
@description This function writes image data to the chip, which displays it in real time.
void oledswitch_enable_linear_gray_scale | ( | oledswitch_t * | ctx | ) |
Enable linear gray scale function.
ctx | Click object. |
@description This function writes linear gray scale configuration data to the chip.
OLEDSWITCH_RETVAL oledswitch_init | ( | oledswitch_t * | ctx, |
oledswitch_cfg_t * | cfg ) |
Initialization function.
oledswitch | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void oledswitch_pre_charge_level | ( | oledswitch_t * | ctx | ) |
Set pre-charge level function.
ctx | Click object. |
@description This function writes pre-charge level configuration data to the chip.
void oledswitch_reg_write | ( | oledswitch_t * | ctx, |
uint8_t * | write_buf, | ||
uint8_t | len ) |
Register write function.
ctx | Click object. |
write_buf | Pointer to a data array that will be written. |
len | Number of bytes in the data array. |
@description This function writes to control and configuration registers on the chip.
void oledswitch_set_column_range | ( | oledswitch_t * | ctx, |
uint8_t | start, | ||
uint8_t | end ) |
Set column range function.
ctx | Click object. |
start | Start pixel position value. |
end | End pixel position value. |
@description This function sets the column range for the display.
void oledswitch_set_contrast | ( | oledswitch_t * | ctx | ) |
Set contrast function.
ctx | Click object. |
@description This function writes contrast configuration data to the chip.
void oledswitch_set_dim_mode | ( | oledswitch_t * | ctx | ) |
Set dim mode function.
ctx | Click object. |
@description This function writes dim mode configuration data to the chip.
void oledswitch_set_display_offset | ( | oledswitch_t * | ctx | ) |
Set display offset function.
ctx | Click object. |
@description This function writes display offset configuration data to the chip.
void oledswitch_set_display_start_line | ( | oledswitch_t * | ctx | ) |
Set display start line function.
ctx | Click object. |
@description This function writes display start line configuration data to the chip.
void oledswitch_set_master_config | ( | oledswitch_t * | ctx | ) |
Set master config function.
ctx | Click object. |
@description This function writes master configuration data to the chip.
void oledswitch_set_master_current | ( | oledswitch_t * | ctx | ) |
Set master current function.
ctx | Click object. |
@description This function writes master current configuration data to the chip.
void oledswitch_set_multiplex_ratio | ( | oledswitch_t * | ctx | ) |
Set multiplex ratio function.
ctx | Click object. |
@description This function writes multiplex ratio configuration data to the chip.
void oledswitch_set_normal_display | ( | oledswitch_t * | ctx | ) |
Set normal display function.
ctx | Click object. |
@description This function writes normal display configuration data to the chip.
void oledswitch_set_phase_period_adjustment | ( | oledswitch_t * | ctx | ) |
Set phase period adjustment function.
ctx | Click object. |
@description This function writes phase period adjustment configuration data to the chip.
void oledswitch_set_power_save_mode | ( | oledswitch_t * | ctx | ) |
Set power save mode function.
ctx | Click object. |
@description This function writes power save mode configuration data to the chip.
void oledswitch_set_remap_color_depth | ( | oledswitch_t * | ctx | ) |
Set remap color depth function.
ctx | Click object. |
@description This function writes remap color depth configuration data to the chip.
void oledswitch_set_row_range | ( | oledswitch_t * | ctx, |
uint8_t | start, | ||
uint8_t | end ) |
Set row range function.
ctx | Click object. |
start | Start pixel position value. |
end | End pixel position value. |
@description This function sets the row range for the display.
void oledswitch_set_vcomh | ( | oledswitch_t * | ctx | ) |
Set vcomh function.
ctx | Click object. |
@description This function writes vcomh configuration data to the chip.
void oledswitch_software_reset | ( | oledswitch_t * | ctx | ) |
Software reset function.
ctx | Click object. |
@description This function does a software reset of the click module.