Closed ardnew closed 3 years ago
Also, you will have to set LV_USE_USER_DATA
in lv_conf.h
. Not sure if there is a way to enable it from the application code or if the user always has to update their driver configuration locally.
Hello there, and thanks for the contribution. With lv_arduino now deprecated (in favor of lvgl in the Arduino License Manager), an overhaul was made to Adafruit_LvGL_Glue examples, which takes care of the “user data” issue and other things…it’s all rolled up in the 2.0 release, and you can see the examples for tips on using this going forward (a lot of stuff is renamed in LittlevGL, and styles are mostly done through setters & getters).
Currently, the examples fail to build against the latest master branch of lvgl/lv_arduino (3.0.1). This PR updates the glue code to support the latest debug print callback signature and also fixes the PyPortal and Featherwing widget examples by using the new LvGL style/theme API.
The Clue and Gizmo widget examples have not been updated because I do not own one of those devices to test against.