add speaker fault + some cleanup

This commit is contained in:
philippe44
2020-01-12 15:57:05 -08:00
parent 52fad515b8
commit b5dc9ec47a
5 changed files with 50 additions and 5 deletions

View File

@@ -187,6 +187,7 @@ void button_create(void *id, int gpio, int type, bool pull, int debounce, button
}
}
gpio_pad_select_gpio(gpio);
gpio_set_direction(gpio, GPIO_MODE_INPUT);
// we need any edge detection