add working test for PCA9685 and servos
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#include "main.h"
|
||||
#include "drvServos.h"
|
||||
#include "hwServos.h"
|
||||
|
||||
bool drvServos_Init(void)
|
||||
{
|
||||
hwServos_Init();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool drvServos_Enable(void)
|
||||
{
|
||||
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_8, GPIO_PIN_SET);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool drvServos_Disable(void)
|
||||
{
|
||||
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_8, GPIO_PIN_RESET);
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user