![]() |
LibDriver ST7789
|
st7789 basic driver modules More...
Data Structures | |
| struct | st7789_handle_s |
| st7789 handle structure definition More... | |
| struct | st7789_info_s |
| st7789 information structure definition More... | |
Macros | |
| #define | ST7789_BUFFER_SIZE (4096) |
| st7789 buffer size definition | |
Typedefs | |
| typedef struct st7789_handle_s | st7789_handle_t |
| st7789 handle structure definition | |
| typedef struct st7789_info_s | st7789_info_t |
| st7789 information structure definition | |
Functions | |
| uint8_t | st7789_info (st7789_info_t *info) |
| get chip's information | |
| uint8_t | st7789_init (st7789_handle_t *handle) |
| initialize the chip | |
| uint8_t | st7789_deinit (st7789_handle_t *handle) |
| close the chip | |
| uint8_t | st7789_set_column (st7789_handle_t *handle, uint16_t column) |
| set column | |
| uint8_t | st7789_set_row (st7789_handle_t *handle, uint16_t row) |
| set row | |
| uint8_t | st7789_clear (st7789_handle_t *handle) |
| clear the display | |
| 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_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_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_draw_picture_12bits (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_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_draw_picture_18bits (st7789_handle_t *handle, uint16_t left, uint16_t top, uint16_t right, uint16_t bottom, uint32_t *image) |
| draw a picture | |
| uint8_t | st7789_nop (st7789_handle_t *handle) |
| nop | |
| uint8_t | st7789_software_reset (st7789_handle_t *handle) |
| software reset | |
| uint8_t | st7789_sleep_in (st7789_handle_t *handle) |
| sleep in | |
| uint8_t | st7789_sleep_out (st7789_handle_t *handle) |
| sleep out | |
| uint8_t | st7789_partial_display_mode_on (st7789_handle_t *handle) |
| partial display mode on | |
| uint8_t | st7789_normal_display_mode_on (st7789_handle_t *handle) |
| normal display mode on | |
| uint8_t | st7789_display_inversion_off (st7789_handle_t *handle) |
| display inversion off | |
| uint8_t | st7789_display_inversion_on (st7789_handle_t *handle) |
| display inversion on | |
| uint8_t | st7789_set_gamma (st7789_handle_t *handle, uint8_t gamma) |
| set gamma | |
| uint8_t | st7789_display_off (st7789_handle_t *handle) |
| display off | |
| uint8_t | st7789_display_on (st7789_handle_t *handle) |
| display on | |
| uint8_t | st7789_set_column_address (st7789_handle_t *handle, uint16_t start_address, uint16_t end_address) |
| set the column address | |
| uint8_t | st7789_set_row_address (st7789_handle_t *handle, uint16_t start_address, uint16_t end_address) |
| set the row address | |
| uint8_t | st7789_memory_write (st7789_handle_t *handle, uint8_t *data, uint16_t len) |
| memory write | |
| uint8_t | st7789_set_partial_areas (st7789_handle_t *handle, uint16_t start_row, uint16_t end_row) |
| set partial areas | |
| uint8_t | st7789_set_vertical_scrolling (st7789_handle_t *handle, uint16_t top_fixed_area, uint16_t scrolling_area, uint16_t bottom_fixed_area) |
| set vertical scrolling | |
| uint8_t | st7789_tearing_effect_line_off (st7789_handle_t *handle) |
| tearing effect line off | |
| uint8_t | st7789_tearing_effect_line_on (st7789_handle_t *handle, st7789_tearing_effect_t effect) |
| tearing effect line on | |
| uint8_t | st7789_set_memory_data_access_control (st7789_handle_t *handle, uint8_t order) |
| set memory data access control | |
| uint8_t | st7789_set_vertical_scroll_start_address (st7789_handle_t *handle, uint16_t start_address) |
| set the vertical scroll start address | |
| uint8_t | st7789_idle_mode_off (st7789_handle_t *handle) |
| idle mode off | |
| uint8_t | st7789_idle_mode_on (st7789_handle_t *handle) |
| idle mode on | |
| 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_memory_continue_write (st7789_handle_t *handle, uint8_t *data, uint16_t len) |
| memory continue write | |
| uint8_t | st7789_set_tear_scanline (st7789_handle_t *handle, uint16_t l) |
| set tear scanline | |
| uint8_t | st7789_set_display_brightness (st7789_handle_t *handle, uint8_t brightness) |
| set display brightness | |
| 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_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_set_cabc_minimum_brightness (st7789_handle_t *handle, uint8_t brightness) |
| set cabc minimum brightness | |
st7789 basic driver modules
| #define ST7789_BUFFER_SIZE (4096) |
| typedef struct st7789_handle_s st7789_handle_t |
st7789 handle structure definition
| typedef struct st7789_info_s st7789_info_t |
st7789 information structure definition
| enum st7789_bool_t |
st7789 bool enumeration definition
| Enumerator | |
|---|---|
| ST7789_BOOL_FALSE | false |
| ST7789_BOOL_TRUE | true |
Definition at line 69 of file driver_st7789.h.
st7789 color enhancement level enumeration definition
| Enumerator | |
|---|---|
| ST7789_COLOR_ENHANCEMENT_LEVEL_LOW | low enhancement |
| ST7789_COLOR_ENHANCEMENT_LEVEL_MEDIUM | medium enhancement |
| ST7789_COLOR_ENHANCEMENT_LEVEL_HIGH | high enhancement |
Definition at line 157 of file driver_st7789.h.
st7789 color enhancement mode enumeration definition
Definition at line 146 of file driver_st7789.h.
st7789 control interface color format enumeration definition
| Enumerator | |
|---|---|
| ST7789_CONTROL_INTERFACE_COLOR_FORMAT_12_BIT | 12bit/pixel |
| ST7789_CONTROL_INTERFACE_COLOR_FORMAT_16_BIT | 16bit/pixel |
| ST7789_CONTROL_INTERFACE_COLOR_FORMAT_18_BIT | 18bit/pixel |
Definition at line 136 of file driver_st7789.h.
| enum st7789_font_t |
st7789 font size enumeration definition
| Enumerator | |
|---|---|
| ST7789_FONT_12 | font 12 |
| ST7789_FONT_16 | font 16 |
| ST7789_FONT_24 | font 24 |
Definition at line 78 of file driver_st7789.h.
| enum st7789_gamma_curve_t |
st7789 gamma curve enumeration definition
| Enumerator | |
|---|---|
| ST7789_GAMMA_CURVE_1 | g2.2 |
| ST7789_GAMMA_CURVE_2 | g1.8 |
| ST7789_GAMMA_CURVE_3 | g2.5 |
| ST7789_GAMMA_CURVE_4 | g1.0 |
Definition at line 88 of file driver_st7789.h.
| enum st7789_order_t |
st7789 order enumeration definition
Definition at line 108 of file driver_st7789.h.
st7789 rgb interface color format enumeration definition
| Enumerator | |
|---|---|
| ST7789_RGB_INTERFACE_COLOR_FORMAT_65K | 65k of rgb interface |
| ST7789_RGB_INTERFACE_COLOR_FORMAT_262K | 262k of rgb interface |
Definition at line 127 of file driver_st7789.h.
st7789 tearing effect enumeration definition
| Enumerator | |
|---|---|
| ST7789_TEARING_EFFECT_V_BLANKING | v-blanking |
| ST7789_TEARING_EFFECT_V_BLANKING_AND_H_BLANKING | v-blanking and h-blanking |
Definition at line 99 of file driver_st7789.h.
| uint8_t st7789_clear | ( | st7789_handle_t * | handle | ) |
clear the display
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 3450 of file driver_st7789.c.
| uint8_t st7789_deinit | ( | st7789_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 3333 of file driver_st7789.c.
| uint8_t st7789_display_inversion_off | ( | st7789_handle_t * | handle | ) |
display inversion off
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 381 of file driver_st7789.c.
| uint8_t st7789_display_inversion_on | ( | st7789_handle_t * | handle | ) |
display inversion on
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 412 of file driver_st7789.c.
| uint8_t st7789_display_off | ( | st7789_handle_t * | handle | ) |
display off
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 481 of file driver_st7789.c.
| uint8_t st7789_display_on | ( | st7789_handle_t * | handle | ) |
display on
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 512 of file driver_st7789.c.
| uint8_t st7789_draw_picture_12bits | ( | st7789_handle_t * | handle, |
| uint16_t | left, | ||
| uint16_t | top, | ||
| uint16_t | right, | ||
| uint16_t | bottom, | ||
| uint16_t * | image ) |
draw a picture
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | left | left coordinate x |
| [in] | top | top coordinate y |
| [in] | right | right coordinate x |
| [in] | bottom | bottom coordinate y |
| [in] | *image | pointer to an image buffer |
Definition at line 3837 of file driver_st7789.c.
| 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
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | left | left coordinate x |
| [in] | top | top coordinate y |
| [in] | right | right coordinate x |
| [in] | bottom | bottom coordinate y |
| [in] | *image | pointer to an image buffer |
Definition at line 4018 of file driver_st7789.c.
| uint8_t st7789_draw_picture_18bits | ( | st7789_handle_t * | handle, |
| uint16_t | left, | ||
| uint16_t | top, | ||
| uint16_t | right, | ||
| uint16_t | bottom, | ||
| uint32_t * | image ) |
draw a picture
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | left | left coordinate x |
| [in] | top | top coordinate y |
| [in] | right | right coordinate x |
| [in] | bottom | bottom coordinate y |
| [in] | *image | pointer to an image buffer |
Definition at line 4191 of file driver_st7789.c.
| uint8_t st7789_draw_point | ( | st7789_handle_t * | handle, |
| uint16_t | x, | ||
| uint16_t | y, | ||
| uint32_t | color ) |
draw a point in the display
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | x | coordinate x |
| [in] | y | coordinate y |
| [in] | color | point color |
Definition at line 4583 of file driver_st7789.c.
| 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
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | left | left coordinate x |
| [in] | top | top coordinate y |
| [in] | right | right coordinate x |
| [in] | bottom | bottom coordinate y |
| [in] | color | display color |
Definition at line 3615 of file driver_st7789.c.
| uint8_t st7789_idle_mode_off | ( | st7789_handle_t * | handle | ) |
idle mode off
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 950 of file driver_st7789.c.
| uint8_t st7789_idle_mode_on | ( | st7789_handle_t * | handle | ) |
idle mode on
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 981 of file driver_st7789.c.
| uint8_t st7789_info | ( | st7789_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to an st7789 info structure |
Definition at line 4667 of file driver_st7789.c.
| uint8_t st7789_init | ( | st7789_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 3205 of file driver_st7789.c.
| uint8_t st7789_memory_continue_write | ( | st7789_handle_t * | handle, |
| uint8_t * | data, | ||
| uint16_t | len ) |
memory continue write
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | *data | pointer to a data buffer |
| [in] | len | data length |
Definition at line 1059 of file driver_st7789.c.
| uint8_t st7789_memory_write | ( | st7789_handle_t * | handle, |
| uint8_t * | data, | ||
| uint16_t | len ) |
memory write
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | *data | pointer to a data buffer |
| [in] | len | data length |
Definition at line 663 of file driver_st7789.c.
| uint8_t st7789_nop | ( | st7789_handle_t * | handle | ) |
nop
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 193 of file driver_st7789.c.
| uint8_t st7789_normal_display_mode_on | ( | st7789_handle_t * | handle | ) |
normal display mode on
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 350 of file driver_st7789.c.
| uint8_t st7789_partial_display_mode_on | ( | st7789_handle_t * | handle | ) |
partial display mode on
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 319 of file driver_st7789.c.
| 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
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | color_enhancement | bool value |
| [in] | mode | color enhancement mode |
| [in] | level | color enhancement level |
Definition at line 1226 of file driver_st7789.c.
| uint8_t st7789_set_cabc_minimum_brightness | ( | st7789_handle_t * | handle, |
| uint8_t | brightness ) |
set cabc minimum brightness
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | brightness | display brightness |
Definition at line 1269 of file driver_st7789.c.
| uint8_t st7789_set_column | ( | st7789_handle_t * | handle, |
| uint16_t | column ) |
set column
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | column | screen column |
Definition at line 3384 of file driver_st7789.c.
| uint8_t st7789_set_column_address | ( | st7789_handle_t * | handle, |
| uint16_t | start_address, | ||
| uint16_t | end_address ) |
set the column address
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | start_address | start address |
| [in] | end_address | end address |
Definition at line 547 of file driver_st7789.c.
| uint8_t st7789_set_display_brightness | ( | st7789_handle_t * | handle, |
| uint8_t | brightness ) |
set display brightness
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | brightness | display brightness |
Definition at line 1139 of file driver_st7789.c.
| 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
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | brightness_control_block | bool value |
| [in] | display_dimming | bool value |
| [in] | backlight_control | bool value |
Definition at line 1180 of file driver_st7789.c.
| uint8_t st7789_set_gamma | ( | st7789_handle_t * | handle, |
| uint8_t | gamma ) |
set gamma
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | gamma | set gamma |
Definition at line 444 of file driver_st7789.c.
| 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
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | rgb | rgb interface color format |
| [in] | control | control interface color format |
Definition at line 1014 of file driver_st7789.c.
| uint8_t st7789_set_memory_data_access_control | ( | st7789_handle_t * | handle, |
| uint8_t | order ) |
set memory data access control
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | order | memory data access control order |
Definition at line 864 of file driver_st7789.c.
| uint8_t st7789_set_partial_areas | ( | st7789_handle_t * | handle, |
| uint16_t | start_row, | ||
| uint16_t | end_row ) |
set partial areas
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | start_row | start row |
| [in] | end_row | end row |
Definition at line 702 of file driver_st7789.c.
| uint8_t st7789_set_row | ( | st7789_handle_t * | handle, |
| uint16_t | row ) |
set row
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | row | screen row |
Definition at line 3417 of file driver_st7789.c.
| uint8_t st7789_set_row_address | ( | st7789_handle_t * | handle, |
| uint16_t | start_address, | ||
| uint16_t | end_address ) |
set the row address
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | start_address | start address |
| [in] | end_address | end address |
Definition at line 606 of file driver_st7789.c.
| uint8_t st7789_set_tear_scanline | ( | st7789_handle_t * | handle, |
| uint16_t | l ) |
set tear scanline
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | l | tear line |
Definition at line 1097 of file driver_st7789.c.
| uint8_t st7789_set_vertical_scroll_start_address | ( | st7789_handle_t * | handle, |
| uint16_t | start_address ) |
set the vertical scroll start address
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | start_address | start address |
Definition at line 903 of file driver_st7789.c.
| uint8_t st7789_set_vertical_scrolling | ( | st7789_handle_t * | handle, |
| uint16_t | top_fixed_area, | ||
| uint16_t | scrolling_area, | ||
| uint16_t | bottom_fixed_area ) |
set vertical scrolling
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | top_fixed_area | top fixed area line |
| [in] | scrolling_area | scrolling area line |
| [in] | bottom_fixed_area | bottom fixed area line |
Definition at line 748 of file driver_st7789.c.
| uint8_t st7789_sleep_in | ( | st7789_handle_t * | handle | ) |
sleep in
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 256 of file driver_st7789.c.
| uint8_t st7789_sleep_out | ( | st7789_handle_t * | handle | ) |
sleep out
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 287 of file driver_st7789.c.
| uint8_t st7789_software_reset | ( | st7789_handle_t * | handle | ) |
software reset
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 224 of file driver_st7789.c.
| uint8_t st7789_tearing_effect_line_off | ( | st7789_handle_t * | handle | ) |
tearing effect line off
| [in] | *handle | pointer to an st7789 handle structure |
Definition at line 794 of file driver_st7789.c.
| uint8_t st7789_tearing_effect_line_on | ( | st7789_handle_t * | handle, |
| st7789_tearing_effect_t | effect ) |
tearing effect line on
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | effect | tearing effect |
Definition at line 826 of file driver_st7789.c.
| 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
| [in] | *handle | pointer to an st7789 handle structure |
| [in] | x | coordinate x |
| [in] | y | coordinate y |
| [in] | *str | pointer to a write string address |
| [in] | len | length of the string |
| [in] | color | display color |
| [in] | font | string font |
Definition at line 4528 of file driver_st7789.c.