okayama
1
Hi.
When LONG_PRESSED is selected as a trigger for a button event, is it possible to set it to a long time that the button is pressed?
I’d like to set it to 5 seconds.
I exported the UI and checked the source, but I couldn’t find it.
**SquareLine Studio version:1.3.2
better as source is check docu. You need set it in indev struct
indev_enc.long_press_time = 1000; //def is 400ms
1 Like
okayama
3
Than you Marian_M.
After searching the project’s sources even better, I was able to find it.
It was found in the LVGL code.
lvgl\src\hal\iv_hal_indev.h
/*Long press time in milliseconds.
Time to send LV_EVENT_LONG_PRESSSED
)/
#define LV_INDEV_DEF_LONG_PRESS_TIME 5000 //set 5 seconds
1 Like