driver st7920 advance header file
uint8_t st7920_set_cgram_address(st7920_handle_t *handle, uint8_t addr)
set the cgram address
uint8_t st7920_set_function(st7920_handle_t *handle, st7920_interface_bus_bit_t bus_bit, st7920_command_mode_t mode)
set the function
uint8_t st7920_display_clear(st7920_handle_t *handle)
clear the display
uint8_t st7920_set_entry_mode(st7920_handle_t *handle, st7920_display_shift_t shift, st7920_address_counter_mode_t mode)
set the entry mode
struct st7920_handle_s st7920_handle_t
st7920 handle structure definition
uint8_t st7920_return_home(st7920_handle_t *handle)
return the home
uint8_t st7920_init(st7920_handle_t *handle)
initialize the chip
uint8_t st7920_deinit(st7920_handle_t *handle)
close the chip
uint8_t st7920_set_ddram_address(st7920_handle_t *handle, uint8_t addr)
set the ddram address
uint8_t st7920_set_display_control(st7920_handle_t *handle, st7920_bool_t display_on, st7920_bool_t cursor_on, st7920_bool_t character_blink_on)
set the display control
uint8_t st7920_write_string(st7920_handle_t *handle, uint8_t x, uint8_t y, char *str)
show a string
uint8_t st7920_set_display_shift_mode(st7920_handle_t *handle, st7920_display_shift_mode_t mode)
set the display shift mode
@ ST7920_COMMAND_MODE_BASIC
@ ST7920_COMMAND_MODE_EXTENDED
@ ST7920_INTERFACE_BUS_BIT_8
uint8_t st7920_advance_string(uint8_t x, uint8_t y, char *str)
advance example write a string
uint8_t st7920_advance_clear(void)
advance example clear
uint8_t st7920_advance_write_point(uint8_t x, uint8_t y, uint8_t data)
advance example write a point
uint8_t st7920_advance_disable_scroll(void)
advance example disable scroll
uint8_t st7920_advance_enable_scroll(void)
advance example enable scroll
uint8_t st7920_advance_set_scroll(uint8_t addr)
advance example set scroll
uint8_t st7920_advance_compress_picture(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
advance example draw a compressed picture
uint8_t st7920_advance_init(void)
advance example init
uint8_t st7920_advance_set_reverse_line(st7920_reverse_line_t l)
advance example set reverse line
uint8_t st7920_advance_display_on(void)
advance example display on
uint8_t st7920_advance_clear_image(void)
advance example clear image
uint8_t st7920_advance_read_point(uint8_t x, uint8_t y, uint8_t *data)
advance example read a point
uint8_t st7920_advance_picture(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
advance example draw a picture
uint8_t st7920_advance_rect(uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color)
advance example fill a rectangle
uint8_t st7920_advance_deinit(void)
advance example deinit
uint8_t st7920_advance_clear_string(void)
advance example clear string
#define ST7920_ADVANCE_DEFAULT_ADDRESS_COUNTER_MODE
#define ST7920_ADVANCE_DEFAULT_DISPLAY_SHIFT
#define ST7920_ADVANCE_DEFAULT_BUS_BIT
st7920 advance example default definition
uint8_t st7920_advance_display_off(void)
advance example display off
#define ST7920_ADVANCE_DEFAULT_DISPLAY_SHIFT_MODE
uint8_t st7920_draw_compress_picture(st7920_handle_t *handle, uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
draw a compressed picture
uint8_t st7920_write_point(st7920_handle_t *handle, uint8_t x, uint8_t y, uint8_t data)
write a point
uint8_t st7920_set_reverse_line(st7920_handle_t *handle, st7920_reverse_line_t l)
set the reverse line
uint8_t st7920_set_vertical_scroll(st7920_handle_t *handle, st7920_bool_t enable)
set the vertical scroll
uint8_t st7920_set_extended_function(st7920_handle_t *handle, st7920_interface_bus_bit_t bus_bit, st7920_command_mode_t mode, st7920_bool_t graphic_display_enable)
set the extended function
st7920_reverse_line_t
st7920 reverse line enumeration definition
uint8_t st7920_fill_rect(st7920_handle_t *handle, uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t color)
fill a rectangle
uint8_t st7920_draw_picture(st7920_handle_t *handle, uint8_t left, uint8_t top, uint8_t right, uint8_t bottom, uint8_t *img)
draw a picture
uint8_t st7920_read_point(st7920_handle_t *handle, uint8_t x, uint8_t y, uint8_t *data)
read a point
uint8_t st7920_set_scroll_address(st7920_handle_t *handle, uint8_t addr)
set the scroll address
void st7920_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t st7920_interface_sclk_gpio_write(uint8_t value)
interface sclk gpio write
uint8_t st7920_interface_cs_gpio_deinit(void)
interface cs gpio deinit
uint8_t st7920_interface_sclk_gpio_init(void)
interface sclk gpio init
uint8_t st7920_interface_cs_gpio_write(uint8_t value)
interface cs gpio write
uint8_t st7920_interface_sid_gpio_write(uint8_t value)
interface sid gpio write
void st7920_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t st7920_interface_cs_gpio_init(void)
interface cs gpio init
uint8_t st7920_interface_sclk_gpio_deinit(void)
interface sclk gpio deinit
void st7920_interface_delay_us(uint32_t us)
interface delay us
uint8_t st7920_interface_sid_gpio_init(void)
interface sid gpio init
uint8_t st7920_interface_sid_gpio_deinit(void)
interface sid gpio deinit
#define DRIVER_ST7920_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_ST7920_LINK_DELAY_US(HANDLE, FUC)
link delay_us function
#define DRIVER_ST7920_LINK_INIT(HANDLE, STRUCTURE)
initialize st7920_handle_t structure
#define DRIVER_ST7920_LINK_SCLK_GPIO_WRITE(HANDLE, FUC)
link sclk_gpio_write function
#define DRIVER_ST7920_LINK_SCLK_GPIO_INIT(HANDLE, FUC)
link sclk_gpio_init function
#define DRIVER_ST7920_LINK_SID_GPIO_INIT(HANDLE, FUC)
link sid_gpio_init function
#define DRIVER_ST7920_LINK_SID_GPIO_WRITE(HANDLE, FUC)
link sid_gpio_write function
#define DRIVER_ST7920_LINK_CS_GPIO_WRITE(HANDLE, FUC)
link cs_gpio_write function
#define DRIVER_ST7920_LINK_SID_GPIO_DEINIT(HANDLE, FUC)
link sid_gpio_deinit function
#define DRIVER_ST7920_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_ST7920_LINK_CS_GPIO_DEINIT(HANDLE, FUC)
link cs_gpio_deinit function
#define DRIVER_ST7920_LINK_CS_GPIO_INIT(HANDLE, FUC)
link cs_gpio_init function
#define DRIVER_ST7920_LINK_SCLK_GPIO_DEINIT(HANDLE, FUC)
link sclk_gpio_deinit function