Skip to content

Commit 47b6af3

Browse files
committedAug 23, 2021
increase debounce time
1 parent e44b7c5 commit 47b6af3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎button.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ long long int handle_button_alarm(long int a, void *p) {
2626
void handle_button_interrupt(void *p) {
2727
button_t *b = (button_t *)(p);
2828
bool state = gpio_get(b->pin);
29-
add_alarm_in_us(100, handle_button_alarm, b, true);
29+
add_alarm_in_us(200, handle_button_alarm, b, true);
3030
}
3131

3232
button_t * create_button(int pin, void (*onchange)(button_t *)) {

‎clib.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pico-button",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"repo": "jkroso/pico-button.c",
55
"description": "A debounced button struct for the Raspberry Pico",
66
"keywords": ["pico", "button"],

0 commit comments

Comments
 (0)
Please sign in to comment.