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

📄 ledsegcode.h.svn-base

📁 由MSP430F135做控制器的温度控制详细程序
💻 SVN-BASE
字号:
/***************************************
* LED SEGMENT CODE                     *
***************************************/
#ifndef  __LEDREG_CODE
#define  __LEDREG_CODE

#define ANODE 

#ifdef ANODE





unsigned int const ledsegcode[] = {

0xfc,0x60,0xda,0xf2,0x66,0xb6,0xbe,0xe0,0xfe,
0xf6,0xee,0x3e,0x9c,0x7a,0x9e,0x8e,0x00,0xce,
0x7c,0x02,0x70,0xfd,0x61,0xdb,0xf3,0x67,0xb7,
0xbf,0xe1,0xff,0xf7,0xe6,0x76};




/*

unsigned int const ledsegcode[] = {
		0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,
 	  //      0    1    2    3    4    5    6   7    8    9			
 		0x77,0x7c,0x39,0x5e,0x79,0x71,0x00,0x73,0x3e,0x40,
 	  //     A    B    C    D    E   F off(0x10) P    U     -  
 	  	0x0e ,
 	  //     j
		0xbf,0x86,0xdb,0xcf,0xe6,0xed,0xfd,0x87,0xff,0xef,
 	  //(0x15)0.  1.   2.   3.   4.   5.    6.  7.   8.   9.	
 	  	0x67,0x78, 0x1c, 0x5c , 0x6e             };
 	  //(0x1f)q t(0x20) u      o    Y
  */
#else 	  
unsigned int const ledsegcode[] = {
		0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,
 	  //     0    1   2     3     4    5   6     7   8    9			
 		0x88,0x83,0xc6,0xa1,0x86,0x8e,0xff,0x8c,0xc1,0xbf  };
 	  //     A     B    C    D    E    F   off   P    U   -    	  
#endif  //end if ANODE

/*************************************
ch452 数码管位命令码
#define CH452_DIG0      0x0800			//数码管位0显示
#define CH452_DIG1      0x0900          //数码管位1显示 
#define CH452_DIG2      0x0a00          //数码管位2显示
#define CH452_DIG3      0x0b00          //数码管位3显示
#define CH452_DIG4      0x0c00          //数码管位4显示
#define CH452_DIG5      0x0d00			//数码管位5显示	
#define CH452_DIG6      0x0e00			//数码管位6显示	
#define CH452_DIG7      0x0f00          //数码管位7显示
***********************************/
unsigned int const ch452_dig_cmd[] = {
			0x0f00,0x0e00,0x0d00,0x0c00,
			0x0b00,0x0a00,0x0900,0x0800};
			
#endif  //end if __LEDREG_CODE

⌨️ 快捷键说明

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