STM32H7 a question about
i salute the whole community
/*Configure GPIO pin : BUTON_Pin */
GPIO_InitStruct.Pin = BUTON_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(BUTON_GPIO_Port, &GPIO_InitStruct);
In the code I showed above, GPIO_NOPULL is displayed. It's the default when I define a button in CubeIDE. However, the button doesn't work this way, but it works when I manually PULLUP it. What's the reason for this?
Posted Dec 7, 2025, 12:54 PM UTC
17