13 lines
284 B
C
13 lines
284 B
C
#ifndef ROBOT_SG90_H
|
|
#define ROBOT_SG90_H
|
|
|
|
void set_angle(int angle);
|
|
void engine_turn_left(void);
|
|
void engine_turn_right(void);
|
|
void regress_middle(void);
|
|
|
|
// 新增的90度精确旋转函数
|
|
void servo_rotate_clockwise_90(void);
|
|
void servo_rotate_counter_clockwise_90(void);
|
|
|
|
#endif |