add working test for PCA9685 and servos

This commit is contained in:
2026-11-18 14:49:09 +02:00
parent 53da31d170
commit 5c836260aa
12 changed files with 145 additions and 8 deletions
+13
View File
@@ -0,0 +1,13 @@
#include "main.h"
#include "hwServos.h"
void hwServos_Init(void)
{
__HAL_RCC_GPIOD_CLK_ENABLE();
GPIO_InitTypeDef GPIO_InitStruct = {0};
GPIO_InitStruct.Pin = GPIO_PIN_8;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
}