I'm trying to make a dual use of 1 button: first use ( short press ) to exectute function "A", a second use ( long press ) to execute function "B".
function A is executed after button1.when_pressed = fucntion_a
function B is execute as follows:
button1.hold_time=3
button1.when_held= function_b
But- when a long press is done, it runs function_a
prior to function_b
( the intention is to execute function_b
only.
function_a
... is this the right way ??)