# cx_facerecog_qw **Repository Path**: yocop/cx_facerecog_qw ## Basic Information - **Project Name**: cx_facerecog_qw - **Description**: 清微人脸识别组件 - **Primary Language**: C - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2022-01-13 - **Last Updated**: 2024-10-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 概述 drv_lcd_st7789: The driver of lcd st7789 ## 接口列表 | 函数 | 说明 | | :--- | :--- | | LCD_GPIO_Init2p8 | lcd gpio init | | LCD_Init2p8 | lcd init | ## 接口详细说明 ### LCD_GPIO_Init2p8 `void LCD_GPIO_Init2p8(st_7789_io_cfg_t *io_cfg)` - function description: - lcd gpio init。 - param: - st_7789_io_cfg_t ```c typedef struct { st_7789_io_t reset; st_7789_io_t spi_cs; st_7789_io_t spi_clk; st_7789_io_t spi_mosi; st_7789_io_t bl_en; // back light enable st_7789_io_t lcd_en; // lcd enable }st_7789_io_cfg_t; ``` - st_7789_io_t ```c typedef struct { em_io_type io_type; gpio_dev_t gpio; // config this field if io_type is gpio uint8_t ao_gpio_id; // config this field if io_type is ao_gpio }st_7789_io_t; ``` - em_io_type ```c typedef enum { UN_USED_7789 = 0, GPIO_7789 = 1, AOGPIO_7789 = 2, }em_io_type; ``` - for example: ``` c static st_7789_io_cfg_t g_lcd_io_cfg = { .reset.io_type = AOGPIO_7789, .reset.ao_gpio_id = 2, .spi_cs.io_type = GPIO_7789, .spi_cs.gpio.port = PC19, .spi_cs.gpio.config = OUTPUT_PUSH_PULL, .spi_cs.gpio.priv = 0, .spi_cs.gpio.pin = SDSLV_MUX, .spi_cs.gpio.pin_func = GPIO_MUX, .spi_clk.io_type = GPIO_7789, .spi_clk.gpio.port = PC18, .spi_clk.gpio.config = OUTPUT_PUSH_PULL, .spi_clk.gpio.priv = 0, .spi_clk.gpio.pin = SDSLV_MUX, .spi_clk.gpio.pin_func = GPIO_MUX, .spi_mosi.io_type = GPIO_7789, .spi_mosi.gpio.port = PC16, .spi_mosi.gpio.config = OUTPUT_OPEN_DRAIN_NO_PULL, .spi_mosi.gpio.priv = 0, .spi_mosi.gpio.pin = SDSLV_MUX, .spi_mosi.gpio.pin_func = GPIO_MUX, .bl_en.io_type = AOGPIO_7789, .bl_en.ao_gpio_id = 1, .lcd_en.io_type = AOGPIO_7789, .lcd_en.ao_gpio_id = 8, }; LCD_GPIO_Init2p8(&g_lcd_io_cfg); ``` - return: - NA ### LCD_Init2p8 `void LCD_Init2p8(void)` - function description: - init lcd - param: - NA - return: - NA ## runtime NA ## dependence NA ## components NA