Closed
Description
Hello,
I'm trying the Pushbutton v3 class on a Raspberry Pi Pico W with micropython v1.22.1 and I'm encoutering a few issues :
- If a Pushbutton is defined with "suppress=True" and has press_func, long_func and double_func defined, but not release_func, a short press causes a crash :
Exception occurred !
Traceback (most recent call last):
File "asyncio/core.py", line 1, in run_until_complete
File "/lib/primitives/delay_ms.py", line 47, in _timer
File "/lib/primitives/init.py", line 20, in launch
File "/lib/primitives/pushbutton.py", line 83, in _ddto
AttributeError: 'Pushbutton' object has no attribute '_fa'
This doesn't occur if "suppress=True" is not used.
- Trying to define button.long_press_ms or button.double_click_ms do not produce expected results :
- defining button.double_click_ms breaks long press time : Every single short press then also registers as a long press.
- defining button.long_press_ms doesn't seem to have any influence at all.
So basically it seems to be working good as long as no fancy options are used : No "suppress=True" and no custom delays, and then it behaves allright.
Metadata
Metadata
Assignees
Labels
No labels