Please tell me how to connect physical buttons to events from Squarline Studio if I use LVGL.
Hello and welcome,
Firstly, you may try also Squareline Studio Forum for SLS specific questions.
I recommend Elecrow’s Excellent Tutorial as a starting point for you. Although the examples here are for ESP-Arduino framework, the procedures are also valid for ESP-IDF and other frameworks. Lesson 12 and onwards explain how to interact with external hardware.
Good luck.
But I have a project on STM32 and I have a multi-screen interface, in which only physical buttons are responsible for entering data. There are also many events and several types of clicks for each button, so it just doesn’t suit me to read the state of the button and, in the condition, do one action by calling a function.