Rdzleo 4547e9e732 适配ESP32-C3开发板成功
1、原有ESP32-S3功能基本实现,有些小Bug需要修复;
2、RAM内存不够导致Img界面图片显示画质不完整,并且当前未开启蓝牙功能,开机蓝牙功能后RAM内存压力加剧;
2026-02-12 15:45:36 +08:00

32 lines
1.1 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "esp_lvgl_port.h"
// I2C引脚参考spi_lcd项目
#define PIN_NUM_SCL 1 // GPIO1 SCL
#define PIN_NUM_SDA 0 // GPIO0 SDA
#define I2C_MASTER_FREQ_HZ 400000 // I2C频率400KHz
#define I2C_MASTER_NUM I2C_NUM_0 // I2C主机编号0
// SPI LCD引脚参考spi_lcd项目标准SPI模式
#define PIN_LCD_BL 7 // GPIO7 背光(低电平有效)
#define PIN_LCD_MOSI 5 // GPIO5 SPI MOSI
#define PIN_LCD_CLK 3 // GPIO3 SPI CLK
#define PIN_LCD_CS 4 // GPIO4 片选
#define PIN_LCD_DC 6 // GPIO6 数据/命令选择SPI模式必需
#define PIN_LCD_RST -1 // 不使用硬复位
#define LCD_HIGH 360
#define LCD_WID 360
// 触摸引脚
#define PIN_TP_RST -1 // 不使用硬复位
#define PIN_TP_INT 10 // GPIO10 触摸中断
#define LCD_TAG "LCD"
#define SPI_LCD_HOST SPI2_HOST // SPI主机编号2
#define PIN_MOTOR_EN -1 // 电机使能(未使用)
#define PIN_BAT_ADC 2 // GPIO2 电池ADC检测引脚ADC1_CH2
void test_display(esp_lcd_panel_handle_t panel_handle);
void test_gpio();