adafruit / Adafruit_LvGL_Glue

“Glue” library between LittlevGL and Adafruit GFX (SPITFT)
Other
35 stars 14 forks source link

lv_arduino v3.0.1 support; fixes for examples widgets_pyportal and widgets_featherwing only #3

Closed ardnew closed 3 years ago

ardnew commented 4 years ago

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.

ardnew commented 4 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.

PaintYourDragon commented 3 years ago

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).