bbcmicrobit / bbcmicrobit/micropython

Debounce time on button_a.is_pressed()

Open
#625 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.