//Define Cycle time
uint Cycle_Time = 300;
uint LED_Time = 0;
uint flag = KEY_UP; //Record the last status of S4
uint on_off = OFF;
uchar key = 0;
uint temp = 0; //Record the value of LED_Time
//函数声明
void Delay(uint); //延时函数
void LED_Init(void); //初始化 LED 控制 IO 口函数
void Key_Init(void); //Initialize Keys
uchar Key_Scan(void); //Monitor the status of Keys
void PWM_Control(void); //Adjust the brightness of LED