CoretechR / OMOTE

Open Source Remote Using ESP32 and LVGL
https://hackaday.io/project/191752
GNU General Public License v3.0
1.31k stars 128 forks source link

UI refactor #50

Closed MatthewColvin closed 11 months ago

MatthewColvin commented 11 months ago

Wrapper on Lvgl that allows for passing of key events and easier memory management.

CoretechR commented 11 months ago

Thanks, @MatthewColvin! That's great work. I'm excited to see where you take this. The UI is still all done in LVGL, right?

MatthewColvin commented 11 months ago

@CoretechR Yep I kinda just wrapped LVGL in order to take advantage of some c++ smart pointer memory management, allow us to call LVGL from multiple threads and propagate key press events easily too.

My hope is this allows us to keep our RAM usage down so we are not limited by stack RAM when it comes to the depth of the UI.

I also am hoping the wrapped code allows for a quicker way to spin up of UI Elements too. For example the keyboard I made includes and links to the text area as opposed to needing to do that every time we make a keyboard.

All this comes with a processing hit of sorts but hopefully we find it is worthwhile 😁