📄 function.h
字号:
#include "const.h"
#include "hard.h"
extern uint slice;
extern uint time;
void timedealy(uint time); //调用前要申明//
void DIR_CON1()
{
{ P1_1=0; //direct control
TIMER1_RUN(1);
while (!P1_4);
TIMER1_RUN(0);
}
}
void DIR_CON2()
{
{ P1_1=1;
TIMER1_RUN(1); //****二号行程开关到,启动1号电机*****//
while (!P1_3);
TIMER1_RUN(0);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -