编码器驱动

菜单功能
Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2022-04-28 16:21:43 +08:00
parent 34e444d832
commit fd07b82537
58 changed files with 1024 additions and 857 deletions
+1 -1
View File
@@ -291,7 +291,7 @@ static void MX_GPIO_Init(void)
/*Configure GPIO pin : en_a_Pin */
GPIO_InitStruct.Pin = en_a_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING;
GPIO_InitStruct.Pull = GPIO_PULLUP;
HAL_GPIO_Init(en_a_GPIO_Port, &GPIO_InitStruct);