How to add driver (FT81x) from LV_PORT_ESP32 to LV_MICROPYTHON

There are two steps:

  • Make FT81x compile and link in lv_micropython esp32 port.
    You can either change esp32 Makefile to include the driver sources, or just copy them somewhere under lvgl/src/ directory.
  • Register FT81x_init and FT81x_flush as Micropython functions. The quickest way would be to include FT81x.h in lvgl.h or one of its included headers (such as lv_conf.h).
    That would make them available under the lvgl module.

How far did you get?

1 Like