📄 stop.c
字号:
#ifndef _STOP_
#define _STOP_
#include "HardwareInfo.c"
#include <GetCompoI.h>
#include <SetMotor.h>
void stop(unsigned char yfy)
{
unsigned char fyMax = 0; //当前所有通道的最大光值
fyMax = GetCompoI(_COMPOUNDEYE_fy_, 9);
while ( (fyMax<yfy) )
{
fyMax = GetCompoI(_COMPOUNDEYE_fy_, 9);
SetMotor(_MOTOR_left_, 1, 1);
SetMotor(_MOTOR_right_, 1, 1);
}
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -