30 lines
1005 B
C
30 lines
1005 B
C
#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 4 //引脚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)
|
||
|
||
void test_display(esp_lcd_panel_handle_t panel_handle);
|
||
void test_gpio(); |