數(shù)據(jù)驅(qū)動、堅持為客戶提供有價值的服務(wù)和內(nèi)容
1、#include #define Stop 0 /宏定義,停止#define Left 1 /宏定義,左轉(zhuǎn)#define Right 2 /宏定義,右轉(zhuǎn)sbit ControlPort = P20; /舵機信號端口sbit KeyLeft = P10; /左轉(zhuǎn)按鍵端口sbit KeyRight = P11; /右轉(zhuǎn)按鍵端口sbit KeyStop = P12; /歸位按鍵端口unsigned char TimeOutCounter = 0,LeftOrRight = 0; /TimeOutCou