unsigned int PixelIndex; #if (LCD_MIRROR_X == 1) || (LCD_MIRROR_Y == 1) || (LCD_SWAP_XY == 1) int xPhys, yPhys; xPhys = LOG2PHYS_X(x, y); yPhys = LOG2PHYS_Y(x, y); #else #define xPhys x #define yPhys y #endif GUI_USE_PARA(pDevice); GUI_USE_PARA(x); G...
.rotation = { .swap_xy = false, .mirror_x = true, .mirror_y = true, }, .flags = { .buff_dma = true, .swap_bytes = true, } }; lvgl_disp = lvgl_port_add_disp(&disp_cfg); return ESP_OK; } static void _app_button_cb(lv_event_t *e) { lv_disp_rotation_t rotation = ...
/* swap x and y/ rt_uint16_t tmp_x = read_data->x_coordinate; rt_uint16_t tmp_y = read_data->y_coordinate; /restore data */ last_x = tmp_x; last_y = tmp_y; return true; } } return false; } static void touchpad_get_xy(rt_int16_t *x, rt_int16_t *y) { *x =...
import st7789import lvgl as lv # 创建显示屏对象display = st7789.ST7789( data_bus=display_bus, display_width=_WIDTH, display_height=_HEIGHT, backlight_pin=_BL, color_space=lv.COLOR_FORMAT.RGB565, color_byte_order=st7789.BYTE_ORDER_BGR, rgb565_byte_swap=True,) import i2cimport task_handl...
charevdev[41]="/dev/input/event1";// 初始化Inpu输入子系统. 这里需要设置lv_indev_t*cdev=lv_evdev_create(LV_INDEV_TYPE_POINTER,evdev);lv_evdev_set_swap_axes(cdev,true);// 设置xy交换翻转lv_evdev_set_calibration(cdev,0,0,DISP_WIDTH,DISP_HIGHT);// 设置触摸最大范围和最小范围 ...
.swap_xy = 0, .mirror_x = 0, .mirror_y = 0, }, }; esp_lcd_panel_io_handle_t tp_io_handle = NULL; esp_lcd_panel_io_i2c_config_t io_config = ESP_LCD_TOUCH_IO_I2C_GT911_CONFIG(); ESP_ERROR_CHECK(esp_lcd_new_panel_io_i2c((esp_lcd_i2c_bus_handle_t)I2C_NUM_0, &io...
last_y = ((data_xy[2] & FT6X36_MSB_MASK) << 8) | (data_xy[3] & FT6X36_LSB_MASK); #if CONFIG_LVGL_FT6X36_SWAPXY int16_t swap_buf = last_x; last_x = last_y; last_y = swap_buf; #endif #if CONFIG_LVGL_FT6X36_INVERT_X last_x = LV_HOR_RES - last_x; #endif ...
esp_lcd_panel_swap_xy(panel_handle, true); esp_lcd_panel_mirror(panel_handle, true,false); ESP_ERROR_CHECK(esp_lcd_panel_disp_on_off(panel_handle, true)); ESP_LOGI(TAG, "Initialize LVGL library"); lv_init(); //lv_disp_set_rotation(disp, LV_DISP_ROT_90); ...
Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} SecurePi / Secure_Pi_LVGL Public Notifications You must be signed in to change notification settings Fork 0 Star 0 Code ...
esp_lcd_panel_mirror(panel_handle, true, true); esp_lcd_panel_swap_xy(panel_handle, true); moefear85 Posts: 45 Joined: Sun Sep 05, 2021 4:55 pm Re: ESP32-S3 & ILI9341 LCD lvgl example using the Intel 8080 (parallel) interface Quote by moefear85 » Fri Jul 01, 2022 7:12...