Compare commits

...

3 commits

3 changed files with 4 additions and 4 deletions

View file

@ -15,15 +15,15 @@ void initServo(TIM_TypeDef * Timer, int Channel) { // Config du moteur servo
Timer_Init(TIM4, 0xFFFF, 22); // Pour obtenir un période de 20 ms
if (Channel == 3){
MyGPIO_Init(GPIOB, 8, AltOut_Ppull); // Outut push pull alternate
MyTimer_PWM(TIM4, 3); //TIM4 CH3 pour PB8
MyGPIO_Init(GPIOB, 8, AltOut_Ppull); // Output push pull alternate
MyTimer_PWM(TIM4, 3); // TIM4 CH3 pour PB8
}
else{
//printf("Cet pilôte n'existe pas");
//printf("Ce pilote n'existe pas");
}
}
else{
//printf("Cet pilôte n'existe pas");
//printf("Ce pilote n'existe pas");
}
}