Skip to content

Crashes with AXS15231 touch driver #470

@ellesborough

Description

@ellesborough

I am using lvgl_micropython with a Waveshare AXS15231 based ESP32 board (actually using @straga SPIBusFast PR) and have the display working, but when I use the AXS15231 touch driver, Micropython crashes once it gets touch events going to LVGL display objects.

If I move my finger over an empty part of the screen it is fine.

Using xs15231.AXS15231(touch_i2c, touch_cal=cal, debug=True) I can see the correct coordinates and press/release state.

But once there is a button or slider object on the screen and I touch them, after a second or two, I get a ConnectionError: EOF from Thonny.

I am using import task_handler; th = task_handler.TaskHandler() and the main program sits in time.sleep after drawing and while the interaction is going on.

I also tried writing my own simple I2C touch driver, which again gets the coordinates and touch state fine, but also crashes the system in the same way.

So it looks like it is related to LVGL's handling of the indev events.

I am not sure how I can debug further as to what is going wrong. Is there a way to get more debug information, warning, error messages from the native code?

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