加入GPIO下拉

This commit is contained in:
不吃油炸鸡
2026-03-30 14:47:00 +08:00
parent fb7293bf3b
commit bff6ff0078
7 changed files with 18 additions and 1029 deletions

View File

@@ -66,7 +66,7 @@ void MX_GPIO_Init(void)
/*Configure GPIO pin : PB10 */
GPIO_InitStruct.Pin = GPIO_PIN_10;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Pull = GPIO_PULLDOWN;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);