Skip to content

About a basic guide to my own C code for LVGL binding compatibility #380

Description

@bhcuong2008

Hi,

This is not a bug/issue report. I dont know where to post my issue. I want to write an C/C++ code application for interacting with sensors, collecting its data. Its data is already at C/C++ side. I need binding it to MicroPython side, so that uPy code can use its data natively, or attach uPy function callback to C/C++ sensor app side. When getting a new sensor data at C/C++ side, uPy callback will be called for further processing. Actually it would be the same LVGL, but it's too large for me to follow.

I've already read these 2 guides, but still can't master it. Section of ESPIDF is useful for me to learn. But I need a guideline to code my C/C++ app like LVGL so that MicroPython binding process is smooth during development and maintenance in future. If having a small C/C++ example with steps to run gen_mpy.py for generating mp module is really graceful.

https://blog.lvgl.io/2019-02-20/micropython-bindings
https://blog.lvgl.io/2019-08-05/micropython-pure-display-driver

Thank you so much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions