where readButtons is a function: bool Input::readButtons(lv_indev_drv_t * indev, lv_indev_data_t * data).
I get this error:
cannot convert 'Input::readButtons' from type 'bool (Input::)(lv_indev_drv_t*, lv_indev_data_t*) {aka bool (Input::)(_lv_indev_drv_t*, lv_indev_data_t*)}' to type 'bool (*)(_lv_indev_drv_t*, lv_indev_data_t*)'
I am not entirely surprised to be honest. But as I said in the beginning, my C++ is very rusty and while I can make a sense for what this means I am completely clueless as to how to solve the problem.
Any advice would be greatly appreciated!
thank you!
Ok the problem is now more clear. So the solution is to have a static global function that is aware of my classes instance call the function of this instance and just pass the pointers in the arguments?
Ok, thanks, I think I understand the concept. I still fail at implementation. The idea is to create the instance and call begin() in my main file, and not having to do anything related to lvgl there. But it seems this is not possible?
Like I’d need to do something like this: