514 for (i = 0; i < 64; i++)
758uint8_t
st7789_basic_rect(uint16_t left, uint16_t top, uint16_t right, uint16_t bottom, uint32_t color)
driver st7789 basic header file
uint8_t st7789_vrhs_convert_to_register(st7789_handle_t *handle, float v, uint8_t *reg)
convert the vrhs to the register raw data
uint8_t st7789_set_gate_on_timing_adjustment(st7789_handle_t *handle, uint8_t gate_on_timing_adjustment, uint8_t gate_off_timing_adjustment_rgb, uint8_t gate_off_timing_adjustment)
set gate on timing adjustment
uint8_t st7789_vdv_convert_to_register(st7789_handle_t *handle, float v, uint8_t *reg)
convert the vdv to the register raw data
uint8_t st7789_set_vcoms_offset(st7789_handle_t *handle, uint8_t offset)
set vcoms offset
uint8_t st7789_set_rgb_interface_control(st7789_handle_t *handle, st7789_direct_rgb_mode_t rgb_mode, st7789_rgb_if_enable_mode_t rgb_if_mode, st7789_pin_level_t vspl, st7789_pin_level_t hspl, st7789_pin_level_t dpl, st7789_pin_level_t epl, uint8_t vbp, uint8_t hbp)
set rgb interface control
uint8_t st7789_set_program_mode_enable(st7789_handle_t *handle, st7789_bool_t enable)
enable or disable program mode
uint8_t st7789_set_command_2_enable(st7789_handle_t *handle, st7789_bool_t enable)
enable or disable command 2
uint8_t st7789_set_equalize_time_control(st7789_handle_t *handle, uint8_t source_equalize_time, uint8_t source_pre_drive_time, uint8_t gate_equalize_time)
set equalize time control
uint8_t st7789_set_positive_voltage_gamma_control(st7789_handle_t *handle, uint8_t param[14])
set positive voltage gamma control
uint8_t st7789_set_vdv_vrh_from(st7789_handle_t *handle, st7789_vdv_vrh_from_t from)
set vdv vrh from
uint8_t st7789_set_vcoms(st7789_handle_t *handle, uint8_t vcoms)
set vcoms
uint8_t st7789_set_digital_gamma(st7789_handle_t *handle, st7789_bool_t enable)
enable or disable digital gamma
uint8_t st7789_set_frame_rate(st7789_handle_t *handle, st7789_inversion_selection_t selection, st7789_frame_rate_t rate)
set frame rate
uint8_t st7789_set_negative_voltage_gamma_control(st7789_handle_t *handle, uint8_t param[14])
set negative voltage gamma control
uint8_t st7789_set_lcm_control(st7789_handle_t *handle, st7789_bool_t xmy, st7789_bool_t xbgr, st7789_bool_t xinv, st7789_bool_t xmx, st7789_bool_t xmh, st7789_bool_t xmv, st7789_bool_t xgs)
set lcm control
uint8_t st7789_set_power_control_1(st7789_handle_t *handle, st7789_avdd_t avdd, st7789_avcl_t avcl, st7789_vds_t vds)
set power control 1
uint8_t st7789_set_frame_rate_control(st7789_handle_t *handle, st7789_bool_t separate_fr_control, st7789_frame_rate_divided_control_t div_control, st7789_inversion_idle_mode_t idle_mode, uint8_t idle_frame_rate, st7789_inversion_partial_mode_t partial_mode, uint8_t partial_frame_rate)
set frame rate control
uint8_t st7789_set_ram_control(st7789_handle_t *handle, st7789_ram_access_t ram_mode, st7789_display_mode_t display_mode, st7789_frame_type_t frame_type, st7789_data_mode_t data_mode, st7789_rgb_bus_width_t bus_width, st7789_pixel_type_t pixel_type)
set ram control
uint8_t st7789_vcoms_offset_convert_to_register(st7789_handle_t *handle, float v, uint8_t *reg)
convert the vcoms offset to the register raw data
uint8_t st7789_set_gate(st7789_handle_t *handle, uint8_t gate_line_number, uint8_t first_scan_line_number, st7789_gate_scan_mode_t mode, st7789_gate_scan_direction_t direction)
set gate
uint8_t st7789_set_gate_control(st7789_handle_t *handle, st7789_vghs_t vghs, st7789_vgls_t vgls)
set gate control
uint8_t st7789_set_cabc_control(st7789_handle_t *handle, st7789_bool_t led_on, st7789_bool_t led_pwm_init, st7789_bool_t led_pwm_fix, st7789_bool_t led_pwm_polarity)
set cabc control
uint8_t st7789_set_partial_mode_control(st7789_handle_t *handle, st7789_non_display_source_output_level_t level, st7789_non_display_area_scan_mode_t mode, st7789_non_display_frame_frequency_t frequency)
set partial mode control
uint8_t st7789_set_pwm_frequency(st7789_handle_t *handle, st7789_pwm_frequency_t frequency)
set pwm frequency
uint8_t st7789_set_spi2_enable(st7789_handle_t *handle, st7789_bool_t date_lane, st7789_bool_t command_table_2)
set spi2 enable
uint8_t st7789_set_porch(st7789_handle_t *handle, uint8_t back_porch_normal, uint8_t front_porch_normal, st7789_bool_t separate_porch_enable, uint8_t back_porch_idle, uint8_t front_porch_idle, uint8_t back_porch_partial, uint8_t front_porch_partial)
set porch
uint8_t st7789_set_power_control_2(st7789_handle_t *handle, st7789_sbclk_div_t sbclk, st7789_stp14ck_div_t stp14ck)
set power control 2
uint8_t st7789_vcom_convert_to_register(st7789_handle_t *handle, float v, uint8_t *reg)
convert the vcom to the register raw data
uint8_t st7789_set_vdv(st7789_handle_t *handle, uint8_t vdv)
set vdv
uint8_t st7789_set_vrhs(st7789_handle_t *handle, uint8_t vrhs)
set vrhs
uint8_t st7789_set_digital_gamma_look_up_table_blue(st7789_handle_t *handle, uint8_t param[64])
set blue digital gamma look up table
uint8_t st7789_set_digital_gamma_look_up_table_red(st7789_handle_t *handle, uint8_t param[64])
set red digital gamma look up table
uint8_t st7789_gate_line_convert_to_register(st7789_handle_t *handle, uint16_t l, uint8_t *reg)
convert the gate line to the register raw data
st7789_font_t
st7789 font size enumeration definition
uint8_t st7789_display_on(st7789_handle_t *handle)
display on
uint8_t st7789_init(st7789_handle_t *handle)
initialize the chip
struct st7789_handle_s st7789_handle_t
st7789 handle structure definition
uint8_t st7789_set_row(st7789_handle_t *handle, uint16_t row)
set row
uint8_t st7789_normal_display_mode_on(st7789_handle_t *handle)
normal display mode on
uint8_t st7789_write_string(st7789_handle_t *handle, uint16_t x, uint16_t y, char *str, uint16_t len, uint32_t color, st7789_font_t font)
write a string in the display
uint8_t st7789_set_display_control(st7789_handle_t *handle, st7789_bool_t brightness_control_block, st7789_bool_t display_dimming, st7789_bool_t backlight_control)
set display control
uint8_t st7789_fill_rect(st7789_handle_t *handle, uint16_t left, uint16_t top, uint16_t right, uint16_t bottom, uint32_t color)
fill the rect
uint8_t st7789_set_cabc_minimum_brightness(st7789_handle_t *handle, uint8_t brightness)
set cabc minimum brightness
uint8_t st7789_set_interface_pixel_format(st7789_handle_t *handle, st7789_rgb_interface_color_format_t rgb, st7789_control_interface_color_format_t control)
set interface pixel format
uint8_t st7789_idle_mode_off(st7789_handle_t *handle)
idle mode off
uint8_t st7789_deinit(st7789_handle_t *handle)
close the chip
uint8_t st7789_set_brightness_control_and_color_enhancement(st7789_handle_t *handle, st7789_bool_t color_enhancement, st7789_color_enhancement_mode_t mode, st7789_color_enhancement_level_t level)
set brightness control and color enhancement
uint8_t st7789_draw_picture_16bits(st7789_handle_t *handle, uint16_t left, uint16_t top, uint16_t right, uint16_t bottom, uint16_t *image)
draw a picture
uint8_t st7789_clear(st7789_handle_t *handle)
clear the display
uint8_t st7789_display_off(st7789_handle_t *handle)
display off
uint8_t st7789_set_gamma(st7789_handle_t *handle, uint8_t gamma)
set gamma
uint8_t st7789_set_display_brightness(st7789_handle_t *handle, uint8_t brightness)
set display brightness
uint8_t st7789_set_column(st7789_handle_t *handle, uint16_t column)
set column
uint8_t st7789_display_inversion_on(st7789_handle_t *handle)
display inversion on
uint8_t st7789_draw_point(st7789_handle_t *handle, uint16_t x, uint16_t y, uint32_t color)
draw a point in the display
uint8_t st7789_sleep_out(st7789_handle_t *handle)
sleep out
uint8_t st7789_set_memory_data_access_control(st7789_handle_t *handle, uint8_t order)
set memory data access control
#define ST7789_BASIC_DEFAULT_GATE_OFF_TIMING_RGB
#define ST7789_BASIC_DEFAULT_LED_PWM_INIT
#define ST7789_BASIC_DEFAULT_VDV
#define ST7789_BASIC_DEFAULT_VGLS_NEGATIVE
uint8_t st7789_basic_draw_picture_16bits(uint16_t left, uint16_t top, uint16_t right, uint16_t bottom, uint16_t *img)
basic example draw a 16 bits picture
uint8_t st7789_basic_rect(uint16_t left, uint16_t top, uint16_t right, uint16_t bottom, uint32_t color)
basic example fill a rectangle
#define ST7789_BASIC_DEFAULT_INVERSION_SELECTION
#define ST7789_BASIC_DEFAULT_PROGRAM_MODE
#define ST7789_BASIC_DEFAULT_INVERSION_IDLE_MODE
#define ST7789_BASIC_DEFAULT_VCOMS
#define ST7789_BASIC_DEFAULT_PORCH_ENABLE
#define ST7789_BASIC_DEFAULT_NON_DISPLAY_SOURCE_OUTPUT_LEVEL
#define ST7789_BASIC_DEFAULT_LED_PWM_FIX
#define ST7789_BASIC_DEFAULT_SOURCE_EQUALIZE_TIME
#define ST7789_BASIC_DEFAULT_PORCH_NORMAL_BACK
#define ST7789_BASIC_DEFAULT_SOURCE_PRE_DRIVE_TIME
#define ST7789_BASIC_DEFAULT_DISPLAY_DIMMING
#define ST7789_BASIC_DEFAULT_AVCL_NEGTIVE
#define ST7789_BASIC_DEFAULT_VSPL
#define ST7789_BASIC_DEFAULT_NON_DISPLAY_FRAME_FREQUENCY
#define ST7789_BASIC_DEFAULT_XGS
#define ST7789_BASIC_DEFAULT_XBGR
#define ST7789_BASIC_DEFAULT_HBP
#define ST7789_BASIC_DEFAULT_DISPLAY_MODE
#define ST7789_BASIC_DEFAULT_ACCESS
#define ST7789_BASIC_DEFAULT_GATE_EQUALIZE_TIME
#define ST7789_BASIC_DEFAULT_DIGITAL_GAMMA
#define ST7789_BASIC_DEFAULT_SBCLK_DIV
#define ST7789_BASIC_DEFAULT_EPL
#define ST7789_BASIC_DEFAULT_XMY
#define ST7789_BASIC_DEFAULT_BRIGHTNESS_BLOCK
#define ST7789_BASIC_DEFAULT_FIRST_SCAN_LINE
#define ST7789_BASIC_DEFAULT_LED_PWM_POLARITY
#define ST7789_BASIC_DEFAULT_VRHS
#define ST7789_BASIC_DEFAULT_GATE_SCAN_MODE
uint8_t st7789_basic_clear(void)
basic example clear
#define ST7789_BASIC_DEFAULT_VDS
#define ST7789_BASIC_DEFAULT_XMV
#define ST7789_BASIC_DEFAULT_FRAME_TYPE
#define ST7789_BASIC_DEFAULT_COLOR_ENHANCEMENT
#define ST7789_BASIC_DEFAULT_GATE_ON_TIMING
uint8_t st7789_basic_init(void)
basic example init
#define ST7789_BASIC_DEFAULT_VBP
#define ST7789_BASIC_DEFAULT_RGB_BUS_WIDTH
#define ST7789_BASIC_DEFAULT_RAM_ACCESS
#define ST7789_BASIC_DEFAULT_NON_DISPLAY_AREA_SCAN_MODE
#define ST7789_BASIC_DEFAULT_INVERSION_PARTIAL_MODE
#define ST7789_BASIC_DEFAULT_GAMMA_CURVE
#define ST7789_BASIC_DEFAULT_SPI2_LANE
#define ST7789_BASIC_DEFAULT_CABC_MINIMUM_BRIGHTNESS
#define ST7789_BASIC_DEFAULT_DATA_MODE
uint8_t st7789_basic_deinit(void)
basic example deinit
#define ST7789_BASIC_DEFAULT_STP14CK_DIV
#define ST7789_BASIC_DEFAULT_IDLE_PARTIAL_RATE
#define ST7789_BASIC_DEFAULT_PORCH_PART_BACK
#define ST7789_BASIC_DEFAULT_AVDD
#define ST7789_BASIC_DEFAULT_DIRECT_RGB_MODE
#define ST7789_BASIC_DEFAULT_ROW
#define ST7789_BASIC_DEFAULT_POSITIVE_VOLTAGE_GAMMA
#define ST7789_BASIC_DEFAULT_FRAME_RATE
#define ST7789_BASIC_DEFAULT_GATE_SCAN_DIRECTION
#define ST7789_BASIC_DEFAULT_PWM_FREQUENCY
#define ST7789_BASIC_DEFAULT_COMMAND_TABLE_2
#define ST7789_BASIC_DEFAULT_PORCH_IDEL_BACK
#define ST7789_BASIC_DEFAULT_GATE_OFF_TIMING
#define ST7789_BASIC_DEFAULT_XINV
uint8_t st7789_basic_string(uint16_t x, uint16_t y, char *str, uint16_t len, uint32_t color, st7789_font_t font)
basic example draw a string
#define ST7789_BASIC_DEFAULT_PORCH_PART_FRONT
#define ST7789_BASIC_DEFAULT_COLUMN
st7789 basic example default definition
#define ST7789_BASIC_DEFAULT_VDV_VRH_FROM
uint8_t st7789_basic_write_point(uint16_t x, uint16_t y, uint32_t color)
basic example write a point
#define ST7789_BASIC_DEFAULT_RGB_INTERFACE_COLOR_FORMAT
uint8_t st7789_basic_display_off(void)
basic example display off
#define ST7789_BASIC_DEFAULT_COLOR_ENHANCEMENT_MODE
uint8_t st7789_basic_display_on(void)
basic example display on
#define ST7789_BASIC_DEFAULT_VGHS
#define ST7789_BASIC_DEFAULT_IDLE_FRAME_RATE
#define ST7789_BASIC_DEFAULT_COLOR_ENHANCEMENT_LEVEL
#define ST7789_BASIC_DEFAULT_PORCH_IDEL_FRONT
#define ST7789_BASIC_DEFAULT_NEGATIVA_VOLTAGE_GAMMA
#define ST7789_BASIC_DEFAULT_BRIGHTNESS
#define ST7789_BASIC_DEFAULT_HSPL
#define ST7789_BASIC_DEFAULT_XMH
#define ST7789_BASIC_DEFAULT_VCOMS_OFFSET
#define ST7789_BASIC_DEFAULT_RGB_IF_ENABLE_MODE
#define ST7789_BASIC_DEFAULT_XMX
#define ST7789_BASIC_DEFAULT_COMMAND_2_ENABLE
#define ST7789_BASIC_DEFAULT_PORCH_NORMAL_FRONT
#define ST7789_BASIC_DEFAULT_PIXEL_TYPE
#define ST7789_BASIC_DEFAULT_LED_ON
#define ST7789_BASIC_DEFAULT_CONTROL_INTERFACE_COLOR_FORMAT
#define ST7789_BASIC_DEFAULT_GATE_LINE
#define ST7789_BASIC_DEFAULT_BACKLIGHT
#define ST7789_BASIC_DEFAULT_SEPARATE_FR
#define ST7789_BASIC_DEFAULT_DPL
#define ST7789_BASIC_DEFAULT_FRAME_RATE_DIVIDED
uint8_t st7789_interface_cmd_data_gpio_init(void)
interface command && data gpio init
void st7789_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t st7789_interface_reset_gpio_deinit(void)
interface reset gpio deinit
uint8_t st7789_interface_cmd_data_gpio_write(uint8_t value)
interface command && data gpio write
uint8_t st7789_interface_spi_init(void)
interface spi bus init
uint8_t st7789_interface_reset_gpio_init(void)
interface reset gpio init
void st7789_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t st7789_interface_spi_deinit(void)
interface spi bus deinit
uint8_t st7789_interface_reset_gpio_write(uint8_t value)
interface reset gpio write
uint8_t st7789_interface_spi_write_cmd(uint8_t *buf, uint16_t len)
interface spi bus write
uint8_t st7789_interface_cmd_data_gpio_deinit(void)
interface command && data gpio deinit
#define DRIVER_ST7789_LINK_RESET_GPIO_WRITE(HANDLE, FUC)
link reset_gpio_write function
#define DRIVER_ST7789_LINK_DEBUG_PRINT(HANDLE, FUC)
link debug_print function
#define DRIVER_ST7789_LINK_SPI_INIT(HANDLE, FUC)
link spi_init function
#define DRIVER_ST7789_LINK_DELAY_MS(HANDLE, FUC)
link delay_ms function
#define DRIVER_ST7789_LINK_RESET_GPIO_INIT(HANDLE, FUC)
link reset_gpio_init function
#define DRIVER_ST7789_LINK_SPI_WRITE_COMMAND(HANDLE, FUC)
link spi_write_cmd function
#define DRIVER_ST7789_LINK_RESET_GPIO_DEINIT(HANDLE, FUC)
link reset_gpio_deinit function
#define DRIVER_ST7789_LINK_COMMAND_DATA_GPIO_DEINIT(HANDLE, FUC)
link cmd_data_gpio_deinit function
#define DRIVER_ST7789_LINK_COMMAND_DATA_GPIO_WRITE(HANDLE, FUC)
link cmd_data_gpio_write function
#define DRIVER_ST7789_LINK_INIT(HANDLE, STRUCTURE)
initialize st7789_handle_t structure
#define DRIVER_ST7789_LINK_SPI_DEINIT(HANDLE, FUC)
link spi_deinit function
#define DRIVER_ST7789_LINK_COMMAND_DATA_GPIO_INIT(HANDLE, FUC)
link cmd_data_gpio_init function