📄 motors.h
字号:
#ifndef _MOTORS
#define _MOTORS
/* functions */
void InitMotors(void); // init to be done before using the other calls
void SetSpeedLeft(int motor_speed); // motor speed in steps/s
void SetSpeedRight(int motor_speed); // motor speed in steps/s
int GetStepsLeft(void); // motors steps done left
int GetStepsRight(void); // motors steps done right
void SetStepsLeft(int set_steps); // set motor steps counter
void SetStepsRight(int set_steps); // set motor steps counter
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -