修复 显示问题
This commit is contained in:
2026-02-24 20:49:23 +08:00
parent c85dfa31ed
commit 2f452e694c
5 changed files with 91 additions and 11 deletions
+30
View File
@@ -0,0 +1,30 @@
#include "e11.h"
static const char *TAG = "E11";
// ==================== 全局变量 ====================
// static QueueHandle_t pcnt_evt_queue = NULL; // PCNT事件队列
// static QueueHandle_t gpio_evt_queue = NULL; // GPIO事件队列
static encoder_state_t encoder = {0};
void e11_loop(){
}
void e11_init()
{
// 配置GPIO
gpio_config_t io_conf = {
.pin_bit_mask = (1ULL << EC11_A_PIN) | (1ULL << EC11_B_PIN) | (1ULL << EC11_SW_PIN), // LCD_DS LCD_CS
.mode = GPIO_MODE_INPUT, // 输出模式
.pull_up_en = GPIO_PULLUP_ENABLE, //
.pull_down_en = GPIO_PULLDOWN_DISABLE, //
.intr_type = GPIO_INTR_DISABLE // 禁用中断
};
// 应用配置
gpio_config(&io_conf);
}