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:
But- when a long press is done, it runs
function_a prior to
function_b ( the intention is to execute