2024-07-11 18:07:41 +08:00
|
|
|
#ifndef __MOTOR_H
|
|
|
|
#define __MOTOR_H
|
|
|
|
|
2024-07-12 14:21:47 +08:00
|
|
|
// 控制电机转动
|
2024-07-11 18:07:41 +08:00
|
|
|
|
|
|
|
#include "main.h"
|
|
|
|
|
2024-07-17 21:19:00 +08:00
|
|
|
void MOTOR_Init(void);
|
2024-07-11 18:07:41 +08:00
|
|
|
void MOTOR_Slip(void);
|
|
|
|
void MOTOR_Stop(void);
|
|
|
|
void MOTOR_SetDuty(int8_t leftDuty, int8_t rightDuty);
|
|
|
|
|
|
|
|
#endif
|