Thanks to visit codestin.com
Credit goes to github.com

Skip to content

arc object will not be animated on ESP32 display, although same code works correctly on Unix #367

Open
@rena2019

Description

@rena2019

Describe the bug
I created an arc and a slider with the following code:

import lv_config
import lvgl as lv
HEIGHT  = lv_config.HEIGHT
WIDTH   = lv_config.WIDTH
import task_handler
th = task_handler.TaskHandler()
lv.init()
scr = lv.screen_active()
scr.set_style_bg_color(lv.color_hex(0x808080), 0)
arc1 = lv.arc(scr)
arc1.set_size(150, 150)
arc1.center()
slider1 = lv.slider(scr)

compiled micropython for ESP32 display with

python3 make.py esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT --flash-size=4 DISPLAY=nv3041a INDEV=gt911

The slider will be animated as expected but the arc won't be animated.

Expected behavior
Under SDL/Unix build everything works without an event handler and the controls will be animated while changing the value with mouse. I also created a roller that works on both systems, seems that the arc is the only control with this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions