📄 myled.h
字号:
/* Very Importany Updata Document
* Yes,as my opinion,There'll be 8 more or at least 4 LEDs on PortNo.0.
* But,as ur view,There are only two LEDs,and U canNOT add any LED more,because
* the rest PINs are defined as fun-control-PIN.
* The worst thing is the first version "myLED" lib and its document is invailed now.
* So re-defined here,but doNOT follow the notes and doNOT use LEDchange!!
*/
#ifndef __myLED_h__
#define __myLED_h__
#define LEDoff 0 /*Three control commands defined here */
#define LEDon 1 /*U can use it with LEDctl(), e.x:LEDctl(LEDon,LED3|LED4); */
#define LEDchange 3 /* Sen what happen,then U'll get the mind. */
#define LEDflash 4 //Oops..I'm lazy. Maybe U can define more :-)
#define L001 0x04 /********************************************/
#define L002 0x08 /*Magic Number defined here is just example. */
//#define L003 0x04 /*Of course U can define some more */
//#define L004 0x08 /*like "#define LOW2 0x03" for 2LEDs at once */
#define LEDA 0x0C /*or Using 0x03 as arg directly */
//#define LED5 0x10 /* define it when extend */
//#define LED6 0x20 /* define it when extend */
//#define LED7 0x40 /* define it when extend */
//#define LED8 0x80 /* define it when extend */
void LEDctl(int cmd,unsigned short arg);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -