lvgl / lv_binding_micropython

LVGL binding for MicroPython
MIT License
237 stars 157 forks source link

split gui initialization into 2 files to allow change of width, heigh… #114

Closed uraich closed 3 years ago

uraich commented 3 years ago

split GUI initialization into 2 files and added t-watch 2020 initialization. Default driver parameters are used. The init parameters for the Lolin TFT 2.4 are given in comments. Default width and height parameters for SDL are set to 480x320 as requested. I tested this for SDL, t-watch 2020 and Lolin TFT 2.4 ili9341 display + xpt2046. For landscape mode I added my calibration parameters for portrait mode I rely on the default ones.

amirgon commented 3 years ago

Thank you for your contribution!
I've added some small fixes on 4ec889c.

Merging.

uraich commented 3 years ago

Yes, raising a runtime error is the better solution. Thank you for your help