舵机控制头文件:
#ifndef __DUOZHUAN_H__
#define __DUOZHUAN_H__
#define uchar unsigned char
#define uint unsigned int
extern unsigned char Set_PWM0; // 占空比调整
extern unsigned char tt1;
***it key10=P3^2;
***it key11=P3^3;
void rightweirun(void);
void leftweirun(void);
void leftrun(void);
void rightrun(void);
void zheng(void);
#endif
舵机控制头文件:
#ifndef __DUOZHUAN_H__
#define __DUOZHUAN_H__
#define uchar unsigned char
#define uint unsigned int
extern unsigned char Set_PWM0; // 占空比调整
extern unsigned char tt1;
***it key10=P3^2;
***it key11=P3^3;
void rightweirun(void);
void leftweirun(void);
void leftrun(void);
void rightrun(void);
void zheng(void);
#endif
举报