global: disable button init (pin used by RGB matrix)

This commit is contained in:
King Kévin 2022-05-24 14:17:04 +02:00
parent d208297aa3
commit 4fba2fd7a4
1 changed files with 2 additions and 0 deletions

View File

@ -260,6 +260,7 @@ void board_setup(void)
led_off(); // switch off LED per default
#endif // LED_PIN
/*
// setup button
#if defined(BUTTON_PIN) && defined(BUTTON_PRESSED)
rcc_periph_clock_enable(GPIO_RCC(BUTTON_PIN)); // enable clock for button
@ -274,6 +275,7 @@ void board_setup(void)
exti_enable_request(GPIO_EXTI(BUTTON_PIN)); // enable external interrupt
nvic_enable_irq(GPIO_NVIC_EXTI_IRQ(BUTTON_PIN)); // enable interrupt
#endif
*/
// reset user input buffer
user_input_available = false;