#include "esp_lvgl_port.h" #define PIN_NUM_SCL 18 //引脚18 SCL #define PIN_NUM_SDA 17 //引脚17 SDA #define I2C_MASTER_FREQ_HZ 100000 #define I2C_MASTER_NUM I2C_NUM_0 // I2C 主机编号 0 #define PIN_LCD_EN 1 //引脚1 使能 #define PIN_LCD_D0 11 //引脚11 数据0 #define PIN_LCD_D1 13 //引脚13 数据1 #define PIN_LCD_D2 14 //引脚14 数据2 #define PIN_LCD_D3 21 //引脚21 数据3 #define PIN_LCD_CLK 12 //引脚12 时钟 #define PIN_LCD_CS 47 //引脚47 片选 #define PIN_LCD_RST 7 //引脚7 复位 #define LCD_HIGH 360 #define LCD_WID 360 #define PIN_TP_RST 6 //引脚6 复位 #define PIN_TP_INT 5 //引脚4 中断 #define LCD_TAG "LCD" #define SPI_LCD_HOST SPI2_HOST // SPI 主机编号 2 #define PIN_MOTOR_EN -1 // 电机使能 #define PIN_BAT_ADC 3 // 电池ADC检测引脚(ADC1_CH2) // 注意:V1.0原理图中 GPIO4=KEY2按键, GPIO5=TP_INT // 如果触摸不工作,请检查 PIN_TP_INT 是否与硬件版本匹配 void test_display(esp_lcd_panel_handle_t panel_handle); void test_gpio();