-
Notifications
You must be signed in to change notification settings - Fork 177
Closed
Labels
Description
Board
M5Dial
Hardware Description
M5 Dial version 1.1 (new from manufacturer according to Mouser)
IDE Name
VSCode
Operating System
Windows 10
Description
The knob does not appear to work in the latest version (1.1) of the hardware.
Rotating the knob produces this error in the log but no events into lvgl:
E (87857) lcd_panel.io.i2c: panel_io_i2c_rx_buffer(140): i2c transaction failed
E (87857) FT5x06: esp_lcd_touch_ft5x06_read_data(179): I2C read error!
There is also this warning during initialization:
W (284) i2c: This driver is an old driver, please migrate your application code to adapt "driver/i2c_master.h"
Sketch
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "sdkconfig.h"
#include "bsp/m5dial.h"
#include "lvgl.h"
static void my_event_cb(lv_event_t * event)
{
printf("Rotated\n");
}
void app_main(void)
{
/* Initialize display and LVGL */
display = bsp_display_start();
lv_display_add_event_cb(display, my_event_cb, LV_EVENT_ROTARY, NULL);
for ( ;; )
{
vTaskDelay(pdMS_TO_TICKS(500));
}
}Other Steps to Reproduce
It may be this is broken on 1.0 hardware as well, I do not have it to test with.
I have checked existing issues, README.md and ESP32 Forum
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.