bbcmicrobit / bbcmicrobit/micropython
Debounce time on button_a.is_pressed()
Open
question
- Dominant language
- C
- Stars
- 646
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
I'm using the buttons on MicroPython to measure the time of an external event (reaction based). Does anyone know where I can find the debounce time in the MicroPython code, as I need to account for this debounce time in my calculations. (Specifically debounce time on button released, if any).
i.e. something like this:
```
start_timer()
while True:
if button_a.is_released():
stop_timer()
break
```
Thanks.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.