You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear all,
the support library works nice and I had less problems to get the T-RGB running with my own lvgl screens.
Touch is new for me and to be honest, I'm not able to find out how the touch event handling works.
Could you please add a simple example with just one lv_label which includes the x/y coordinates and changing label colours if the label is pressed or released?
would be great,
thx
Chris
The text was updated successfully, but these errors were encountered:
The TRGBArduinoSupport library automatically sets up lvgl to use touch.
The released version 0.4 supports the FT3267 touch controller only, which is used in the oval/half-circle variant of T-RGB.
The round version uses a CST820 touch controller. This is supported by the TRGBArduinoSupport library since today (see latest commit), but not yet released. So if you want to give it a try, use the git version in platformio.ini.
The touch driver is initialized in line 149ff of TRGBSupport.cpp:
The lv_touchpad_read is the callback function that lvgl calls whenever it wants to update the pointer position.
You can see it in line 28ff. of TRGBSupport.cpp.
Dear all,
the support library works nice and I had less problems to get the T-RGB running with my own lvgl screens.
Touch is new for me and to be honest, I'm not able to find out how the touch event handling works.
Could you please add a simple example with just one lv_label which includes the x/y coordinates and changing label colours if the label is pressed or released?
would be great,
thx
Chris
The text was updated successfully, but these errors were encountered: