#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); }