lv_nv3007.h
API reference for lv_nv3007.h
This driver is just a wrapper around the generic MIPI compatible LCD controller driver
Summary
Functions
lv_nv3007_set_gap
Set gap, i.e., the offset of the (0,0) pixel in the VRAM
void lv_nv3007_set_gap(lv_display_t *disp, uint16_t x, uint16_t y)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | display object |
x | uint16_t | x offset |
y | uint16_t | y offset |
lv_nv3007_set_invert
Set color inversion
void lv_nv3007_set_invert(lv_display_t *disp, bool invert)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | display object |
invert | bool | false: normal, true: invert |
lv_nv3007_set_gamma_curve
Set gamma curve
void lv_nv3007_set_gamma_curve(lv_display_t *disp, uint8_t gamma)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | display object |
gamma | uint8_t | gamma curve |
lv_nv3007_create
Create an LCD display with NV3007 driver
lv_display_t * lv_nv3007_create(uint32_t hor_res, uint32_t ver_res, lv_lcd_flag_t flags, lv_nv3007_send_cmd_cb_t send_cmd_cb, lv_nv3007_send_color_cb_t send_color_cb)| Name | Type | Description |
|---|---|---|
hor_res | uint32_t | horizontal resolution |
ver_res | uint32_t | vertical resolution |
flags | lv_lcd_flag_t | default configuration settings (mirror, RGB ordering, etc.) |
send_cmd_cb | lv_nv3007_send_cmd_cb_t | platform-dependent function to send a command to the LCD controller (usually uses polling transfer) |
send_color_cb | lv_nv3007_send_color_cb_t | platform-dependent function to send pixel data to the LCD controller (usually uses DMA transfer: must implement a 'ready' callback) |
Returns: lv_display_t * — pointer to the created display
lv_nv3007_send_cmd_list
Send list of commands.
void lv_nv3007_send_cmd_list(lv_display_t *disp, const uint8_t *cmd_list)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | display object |
cmd_list | const uint8_t * | controller and panel-specific commands |
Typedefs
lv_nv3007_send_cmd_cb_t
typedef lv_lcd_send_cmd_cb_t lv_nv3007_send_cmd_cb_tUsed by 1 function
lv_nv3007_create— paramsend_cmd_cb
lv_nv3007_send_color_cb_t
typedef lv_lcd_send_color_cb_t lv_nv3007_send_color_cb_tUsed by 1 function
lv_nv3007_create— paramsend_color_cb
Dependencies
Last updated on