Restore LVGL touch input with SoftSPI and temperature map.
Bind indev to the display, relax IRQ checks, and keep prebuilt firmware in sync. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -47,11 +47,13 @@ void setup() {
|
||||
|
||||
lv_display_t *disp =
|
||||
lv_tft_espi_create(SCREEN_WIDTH, SCREEN_HEIGHT, draw_buf, sizeof(draw_buf));
|
||||
// 横屏;触点报物理 240x320,由 LVGL 做旋转变换
|
||||
lv_display_set_rotation(disp, LV_DISPLAY_ROTATION_270);
|
||||
|
||||
lv_indev_t *indev = lv_indev_create();
|
||||
lv_indev_set_type(indev, LV_INDEV_TYPE_POINTER);
|
||||
lv_indev_set_read_cb(indev, touch_read_cb);
|
||||
lv_indev_set_display(indev, disp);
|
||||
|
||||
ui_create();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user