我想用这个st7796u驱动的屏幕来跑tuya_ai_toy的wechat这个屏幕功能,但是修改了TUYA_DEVICE_CFG_H里面的LCD驱动名字
// default display
#define LCD_DEV_NAME "st7796u"
#define LCD_WIDTH 320
#define LCD_HEIGHT 480
#define LCD_ROTATION TKL_DISP_ROTATION_0
#define LCD_FPS 10
和void tuya_board_lcd_init里面的spi引脚定义了
void tuya_board_lcd_init(TKL_DISP_INFO_S *lcd)
{
#if defined(T5AI_BOARD) && T5AI_BOARD == 1
lcd->ll_ctrl.power_ctrl_pin = TUYA_GPIO_NUM_MAX; // no lcd ldo
lcd->ll_ctrl.power_active_level = TUYA_GPIO_LEVEL_HIGH;
lcd->ll_ctrl.rgb_mode = TKL_DISP_PIXEL_FMT_RGB565;
Code: Select all
lcd->ll_ctrl.bl.io = TUYA_GPIO_NUM_6;
lcd->ll_ctrl.bl.mode = TKL_DISP_BL_GPIO;
lcd->ll_ctrl.bl.active_level = TUYA_GPIO_LEVEL_HIGH;
lcd->ll_ctrl.spi.clk = TUYA_GPIO_NUM_2;
lcd->ll_ctrl.spi.csx = TUYA_GPIO_NUM_3;
lcd->ll_ctrl.spi.sda = TUYA_GPIO_NUM_7;
lcd->ll_ctrl.spi.rst_mode = TKL_DISP_GPIO_RESET;
lcd->ll_ctrl.spi.rst = 0xff;
lcd->ll_ctrl.tp.tp_i2c_clk = TUYA_GPIO_NUM_13;
lcd->ll_ctrl.tp.tp_i2c_sda = TUYA_GPIO_NUM_15;
lcd->ll_ctrl.tp.tp_rst = TUYA_GPIO_NUM_54;
lcd->ll_ctrl.tp.tp_intr = TUYA_GPIO_NUM_55;
lcd->ll_ctrl.rst_pin = TUYA_GPIO_NUM_8;
lcd->ll_ctrl.rst_active_level = TUYA_GPIO_LEVEL_LOW;}但还是实现不了wechat的功能,是哪里还没有弄好吗