⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 harder.h

📁 周立功的 51单片机的UCOS嵌入式系统源代码
💻 H
字号:
#ifndef _LED_H
#define _LED_H

#define SetPin(PinNum)    IOSET = (1<<PinNum)
#define ClrPin(PinNum)    IOCLR = (1<<PinNum)
#define GetPin(PinNum)    ((IOPIN>>PinNum) & 1)

extern void CplPin(unsigned char  PinNum);
extern void SetPinMode(unsigned char PinNum,unsigned char mode,unsigned char InOrOut); 


extern void LedLight(int LedNum,int Status);
extern void LedFlash(int LedNum,int FlashNum);
extern void Beep(int Num);
extern void Display(unsigned char dat);


#define	  LED1        10
#define   LED2        11
#define   LED3        12 
#define   LED4        13 

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -