driver ssd1315 basic header file
uint8_t ssd1315_clear(ssd1315_handle_t *handle)
clear the screen
uint8_t ssd1315_set_entire_display(ssd1315_handle_t *handle, ssd1315_entire_display_t enable)
enable or disable the entire display
ssd1315_interface_t
ssd1315 interface enumeration definition
uint8_t ssd1315_set_zoom_in(ssd1315_handle_t *handle, ssd1315_zoom_in_t zoom)
set the display zoom in
uint8_t ssd1315_set_memory_addressing_mode(ssd1315_handle_t *handle, ssd1315_memory_addressing_mode_t mode)
set the memory addressing mode
uint8_t ssd1315_set_display_mode(ssd1315_handle_t *handle, ssd1315_display_mode_t mode)
set the display mode
uint8_t ssd1315_read_point(ssd1315_handle_t *handle, uint8_t x, uint8_t y, uint8_t *data)
read a point
uint8_t ssd1315_init(ssd1315_handle_t *handle)
initialize the chip
uint8_t ssd1315_deactivate_scroll(ssd1315_handle_t *handle)
deactivate the scroll
uint8_t ssd1315_set_multiplex_ratio(ssd1315_handle_t *handle, uint8_t multiplex)
set the multiplex ratio
uint8_t ssd1315_set_display_start_line(ssd1315_handle_t *handle, uint8_t l)
set the display start line
uint8_t ssd1315_set_segment_remap(ssd1315_handle_t *handle, ssd1315_segment_column_remap_t remap)
set the segment remap
uint8_t ssd1315_set_display(ssd1315_handle_t *handle, ssd1315_display_t on_off)
enable or disable the display
uint8_t ssd1315_set_interface(ssd1315_handle_t *handle, ssd1315_interface_t interface)
set the chip interface
uint8_t ssd1315_set_iref(ssd1315_handle_t *handle, ssd1315_iref_t enable, ssd1315_iref_value_t iref)
set iref
uint8_t ssd1315_set_charge_pump(ssd1315_handle_t *handle, ssd1315_charge_pump_t enable, ssd1315_charge_pump_mode_t mode)
enable or disable the charge pump
uint8_t ssd1315_gram_fill_rect(ssd1315_handle_t *handle, uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color)
fill a rectangle in the gram
struct ssd1315_handle_s ssd1315_handle_t
ssd1315 handle structure definition
uint8_t ssd1315_set_precharge_period(ssd1315_handle_t *handle, uint8_t phase1_period, uint8_t phase2_period)
set the pre charge period
uint8_t ssd1315_set_scan_direction(ssd1315_handle_t *handle, ssd1315_scan_direction_t dir)
set the scan direction
uint8_t ssd1315_set_display_clock(ssd1315_handle_t *handle, uint8_t oscillator_frequency, uint8_t clock_divide)
set the display clock
uint8_t ssd1315_set_page_address_range(ssd1315_handle_t *handle, uint8_t start_addr, uint8_t end_addr)
set the page address range
uint8_t ssd1315_gram_write_string(ssd1315_handle_t *handle, uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t color, ssd1315_font_t font)
draw a string in the gram
uint8_t ssd1315_set_fade_blinking_mode(ssd1315_handle_t *handle, ssd1315_fade_blinking_mode_t mode, uint8_t frames)
set the fade blinking mode
uint8_t ssd1315_set_high_column_start_address(ssd1315_handle_t *handle, uint8_t addr)
set the high column start address
uint8_t ssd1315_set_low_column_start_address(ssd1315_handle_t *handle, uint8_t addr)
set the low column start address
ssd1315_font_t
ssd1315 font enumeration definition
uint8_t ssd1315_set_display_offset(ssd1315_handle_t *handle, uint8_t offset)
set the display offset
uint8_t ssd1315_set_addr_pin(ssd1315_handle_t *handle, ssd1315_address_t addr_pin)
set the chip iic address
uint8_t ssd1315_write_point(ssd1315_handle_t *handle, uint8_t x, uint8_t y, uint8_t data)
write a point
uint8_t ssd1315_gram_update(ssd1315_handle_t *handle)
update the gram data
ssd1315_address_t
ssd1315 address pin enumeration definition
uint8_t ssd1315_set_contrast(ssd1315_handle_t *handle, uint8_t contrast)
set the display contrast
uint8_t ssd1315_set_com_pins_hardware_conf(ssd1315_handle_t *handle, ssd1315_pin_conf_t conf, ssd1315_left_right_remap_t remap)
set the hardware com pins
uint8_t ssd1315_deinit(ssd1315_handle_t *handle)
close the chip
uint8_t ssd1315_gram_draw_picture(ssd1315_handle_t *handle, uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
draw a picture in the gram
uint8_t ssd1315_set_deselect_level(ssd1315_handle_t *handle, ssd1315_deselect_level_t level)
set the deselect level
uint8_t ssd1315_set_column_address_range(ssd1315_handle_t *handle, uint8_t start_addr, uint8_t end_addr)
set the column address range
@ SSD1315_MEMORY_ADDRESSING_MODE_PAGE
@ SSD1315_CHARGE_PUMP_ENABLE
@ SSD1315_ENTIRE_DISPLAY_OFF
@ SSD1315_CHARGE_PUMP_MODE_7P5V
uint8_t ssd1315_basic_write_point(uint8_t x, uint8_t y, uint8_t data)
basic example write a point
#define SSD1315_BASIC_DEFAULT_SCAN_DIRECTION
#define SSD1315_BASIC_DEFAULT_HIGH_COLUMN_START_ADDRESS
#define SSD1315_BASIC_DEFAULT_COLUMN_ADDRESS_RANGE_START
uint8_t ssd1315_basic_rect(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color)
basic example fill a rectangle
uint8_t ssd1315_basic_init(ssd1315_interface_t interface, ssd1315_address_t addr)
basic example init
#define SSD1315_BASIC_DEFAULT_LOW_COLUMN_START_ADDRESS
#define SSD1315_BASIC_DEFAULT_IREF_VALUE
#define SSD1315_BASIC_DEFAULT_PAGE_ADDRESS_RANGE_START
#define SSD1315_BASIC_DEFAULT_PHASE2_PERIOD
uint8_t ssd1315_basic_string(uint8_t x, uint8_t y, char *str, uint16_t len, uint8_t color, ssd1315_font_t font)
basic example draw a string
#define SSD1315_BASIC_DEFAULT_DESELECT_LEVEL
ssd1315 basic example default definition
#define SSD1315_BASIC_DEFAULT_DISPLAY_START_LINE
#define SSD1315_BASIC_DEFAULT_PHASE1_PERIOD
#define SSD1315_BASIC_DEFAULT_PIN_CONF
#define SSD1315_BASIC_DEFAULT_DISPLAY_MODE
uint8_t ssd1315_basic_display_on(void)
basic example display on
#define SSD1315_BASIC_DEFAULT_PAGE_ADDRESS_RANGE_END
uint8_t ssd1315_basic_deinit(void)
basic example deinit
uint8_t ssd1315_basic_display_off(void)
basic example display off
#define SSD1315_BASIC_DEFAULT_FADE_FRAMES
uint8_t ssd1315_basic_clear(void)
basic example clear
#define SSD1315_BASIC_DEFAULT_COLUMN_ADDRESS_RANGE_END
#define SSD1315_BASIC_DEFAULT_IREF
#define SSD1315_BASIC_DEFAULT_DISPLAY_OFFSET
uint8_t ssd1315_basic_read_point(uint8_t x, uint8_t y, uint8_t *data)
basic example read a point
#define SSD1315_BASIC_DEFAULT_CLOCK_DIVIDE
#define SSD1315_BASIC_DEFAULT_CONTRAST
#define SSD1315_BASIC_DEFAULT_ZOOM_IN
#define SSD1315_BASIC_DEFAULT_LEFT_RIGHT_REMAP
#define SSD1315_BASIC_DEFAULT_FADE_BLINKING_MODE
uint8_t ssd1315_basic_picture(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
basic example draw a picture
#define SSD1315_BASIC_DEFAULT_SEGMENT
#define SSD1315_BASIC_DEFAULT_MULTIPLEX_RATIO
#define SSD1315_BASIC_DEFAULT_OSCILLATOR_FREQUENCY
uint8_t ssd1315_interface_iic_deinit(void)
interface iic bus deinit
uint8_t ssd1315_interface_spi_cmd_data_gpio_write(uint8_t value)
interface command && data gpio write
uint8_t ssd1315_interface_reset_gpio_init(void)
interface reset gpio init
uint8_t ssd1315_interface_reset_gpio_deinit(void)
interface reset gpio deinit
uint8_t ssd1315_interface_spi_init(void)
interface spi bus init
uint8_t ssd1315_interface_spi_write_cmd(uint8_t *buf, uint16_t len)
interface spi bus write
void ssd1315_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t ssd1315_interface_spi_deinit(void)
interface spi bus deinit
uint8_t ssd1315_interface_iic_init(void)
interface iic bus init
uint8_t ssd1315_interface_reset_gpio_write(uint8_t value)
interface reset gpio write
void ssd1315_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t ssd1315_interface_spi_cmd_data_gpio_init(void)
interface command && data gpio init
uint8_t ssd1315_interface_spi_cmd_data_gpio_deinit(void)
interface command && data gpio deinit
uint8_t ssd1315_interface_iic_write(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
interface iic bus write
#define DRIVER_SSD1315_LINK_SPI_INIT(HANDLE, FUC)
link spi_init function
#define DRIVER_SSD1315_LINK_SPI_COMMAND_DATA_GPIO_INIT(HANDLE, FUC)
link spi_cmd_data_gpio_init function
#define DRIVER_SSD1315_LINK_RESET_GPIO_WRITE(HANDLE, FUC)
link reset_gpio_write function
#define DRIVER_SSD1315_LINK_IIC_WRITE(HANDLE, FUC)
link iic_write function
#define DRIVER_SSD1315_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_SSD1315_LINK_IIC_INIT(HANDLE, FUC)
link iic_init function
#define DRIVER_SSD1315_LINK_RESET_GPIO_DEINIT(HANDLE, FUC)
link reset_gpio_deinit function
#define DRIVER_SSD1315_LINK_IIC_DEINIT(HANDLE, FUC)
link iic_deinit function
#define DRIVER_SSD1315_LINK_RESET_GPIO_INIT(HANDLE, FUC)
link reset_gpio_init function
#define DRIVER_SSD1315_LINK_SPI_WRITE_COMMAND(HANDLE, FUC)
link spi_write_cmd function
#define DRIVER_SSD1315_LINK_SPI_DEINIT(HANDLE, FUC)
link spi_deinit function
#define DRIVER_SSD1315_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_SSD1315_LINK_SPI_COMMAND_DATA_GPIO_DEINIT(HANDLE, FUC)
link spi_cmd_data_gpio_deinit function
#define DRIVER_SSD1315_LINK_SPI_COMMAND_DATA_GPIO_WRITE(HANDLE, FUC)
link spi_cmd_data_gpio_write function
#define DRIVER_SSD1315_LINK_INIT(HANDLE, STRUCTURE)
initialize ssd1315_handle_t structure