更新通讯协议,完善灯丝控制

This commit is contained in:
2026-08-26 16:06:02 +08:00
parent 29e22659ce
commit 653c7ec412
10 changed files with 228 additions and 113 deletions
+6
View File
@@ -900,6 +900,12 @@ static void MX_GPIO_Init(void)
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(LED_GPIO_Port, &GPIO_InitStruct);
/*Configure GPIO pin : WORK_CMD_Pin */
GPIO_InitStruct.Pin = WORK_CMD_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(WORK_CMD_GPIO_Port, &GPIO_InitStruct);
/*Configure GPIO pin : WDI_Pin */
GPIO_InitStruct.Pin = WDI_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;