harder.h
来自「在软件Proteus中仿真ucos(ARM)」· C头文件 代码 · 共 25 行
H
25 行
#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 + =
减小字号Ctrl + -
显示快捷键?