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

📄 fut155.vfd

📁 ESS3890+SL原代码(1*16内存)
💻 VFD
字号:
/* Copyright 1998, ESS Technology, Inc.					*//* SCCSID @(#)fut155.vfd	4.1 11/05/02 *//* Based on fut155.vfd	1.1 10/05/99 *//* * FUTUBA VFD BT-155GK * * VFD controller: NEC 16311 * */#ifdef VFD_FUT155#define LED_DATA_CMD			0x41#define LED_LIGHT_UP			0xfe    /* only light up LED1 */#define	ICON_house		ANODE_G1P1#define	ICON_lr_spkr	ANODE_G1P2#define	ICON_lf_spkr	ANODE_G1P3#define	ICON_cntr_spkr	ANODE_G1P4#define	ICON_rr_spkr	ANODE_G1P5#define	ICON_rf_spkr	ANODE_G1P6#define	ICON_tv		 	ANODE_G1P7#define	ICON_subwoofer	ANODE_G1P8#define	ICON_24bit		ANODE_G1P9#define	ICON_96khz		ANODE_G1P10	  #define ICON_colon1		ANODE_G3P15#define	ICON_play		ANODE_G12P1#define	ICON_repeat		ANODE_G12P2#define	ICON_next		ANODE_G12P3#define	ICON_pause		ANODE_G12P4#define	ICON_angle		ANODE_G12P8#define	ICON_program	ANODE_G12P14#define	ICON_s12		ANODE_G13P1#define	ICON_s1			ANODE_G13P2#define	ICON_s2			ANODE_G13P3#define	ICON_s3			ANODE_G13P4#define	ICON_s4			ANODE_G13P5#define	ICON_s5			ANODE_G13P6#define	ICON_s6			ANODE_G13P7#define	ICON_s7			ANODE_G13P8#define	ICON_s8			ANODE_G13P9#define	ICON_s9			ANODE_G13P10#define	ICON_s10		ANODE_G13P11#define	ICON_s11		ANODE_G13P12#define	ICON_dvd		ANODE_G13P13 #define ICON_empty		ANODE_G1P11/* * Controller mode setting. This is determined by number of G/P and * the particular VFD controller that you are using. */unsigned int VFD_mode[] = {#ifdef D16311    0x0c,            /* 13G, 15P    */#endif};unsigned int VFD_char_segment_size[] = { 15 };/* Internal GP to external GP mapping */unsigned char VFD_refresh_address[] = {#ifdef D16311    0,1,	3,4,	6,7,	9,10,	12,13,	15,16,	18,19,	21,22,	24,25,	27,28,	30,31,	33,34,	36,37,#endif};/** 9-segment definition  for title/track/minute/second.* segments are in a,b,c,d,e,f,g,m,j,p,n order	*/VFD_CHAR_SEGMENTS VFD_char_segments[] = {    {ANODE_G9P1,	ANODE_G9P5,		ANODE_G9P9,     ANODE_G9P14,	ANODE_G9P10,	ANODE_G9P6,     ANODE_G9P8,	ANODE_G9P7,		ANODE_G9P3,     ANODE_G9P12,	ANODE_G9P13},		/* Track high */    {ANODE_G8P1,	ANODE_G8P5,		ANODE_G8P9,     ANODE_G8P14,	ANODE_G8P10,	ANODE_G8P6,     ANODE_G8P8,	ANODE_G8P7,		ANODE_G8P3,     ANODE_G8P12,	ANODE_G8P13},		/* Track low */         {ANODE_G7P1,	ANODE_G7P5,		ANODE_G7P9,     ANODE_G7P14,	ANODE_G7P10,	ANODE_G7P6,     ANODE_G7P8,	ANODE_G7P7,		ANODE_G7P3,     ANODE_G7P12,	ANODE_G7P13},		/* space */	{ANODE_G5P1,	ANODE_G5P5,		ANODE_G5P9,     ANODE_G5P14,	ANODE_G5P10,	ANODE_G5P6,     ANODE_G5P8,	ANODE_G5P7,		ANODE_G5P3,     ANODE_G5P12,	ANODE_G5P13},		/* Minute high */   	{ANODE_G4P1,	ANODE_G4P5,		ANODE_G4P9,     ANODE_G4P14,	ANODE_G4P10,	ANODE_G4P6,     ANODE_G4P8,	ANODE_G4P7,		ANODE_G4P3,     ANODE_G4P12,	ANODE_G4P13},		/* Minute low */	{ANODE_G3P1,	ANODE_G3P5,		ANODE_G3P9,     ANODE_G3P14,	ANODE_G3P10,	ANODE_G3P6,     ANODE_G3P8,	ANODE_G3P7,		ANODE_G3P3,     ANODE_G3P12,	ANODE_G3P13},		/* Second high */	{ANODE_G2P1,	ANODE_G2P5,		ANODE_G2P9,     ANODE_G2P14,	ANODE_G2P10,	ANODE_G2P6,     ANODE_G2P8,	ANODE_G2P7,		ANODE_G2P3,     ANODE_G2P12,	ANODE_G2P13},		/* Second low */    {ANODE_G6P1,	ANODE_G6P5,		ANODE_G6P9,     ANODE_G6P14,	ANODE_G6P10,	ANODE_G6P6,     ANODE_G6P8,	ANODE_G6P7,		ANODE_G6P3,     ANODE_G6P12,	ANODE_G6P13},		/* 100+ minute */    {ANODE_G11P1,	ANODE_G11P5,	ANODE_G11P9,     ANODE_G11P14,	ANODE_G11P10,	ANODE_G11P6,     ANODE_G11P8,	ANODE_G11P7,	ANODE_G11P3,     ANODE_G11P12,	ANODE_G11P13},		/* Title high */          {ANODE_G10P1,	ANODE_G10P5,	ANODE_G10P9,     ANODE_G10P14,	ANODE_G10P10,	ANODE_G10P6,     ANODE_G10P8,	ANODE_G10P7,	ANODE_G10P3,     ANODE_G10P12,	ANODE_G10P13},		/* Title low */	    };/* Icons that belong to calendar */unsigned short VFD_calendar_table[] = {     ICON_empty, ICON_empty, ICON_empty, ICON_empty, ICON_empty,     ICON_empty, ICON_empty, ICON_empty, ICON_empty, ICON_empty,     ICON_empty, ICON_empty, ICON_empty, ICON_empty, ICON_empty,     ICON_empty};VFD_ICON VFD_iconmsg[] = {    /* Repeat AB related */   {"hitrun",   {ICON_play,ICON_pause },                {ICON_empty},        },   {"24bit",	{ICON_24bit},				{ICON_empty}		},	{"96khz",   {ICON_96khz},	            {ICON_empty}       },    {"house",    {ICON_house},    				 {ICON_empty}			},    {"lrspkr",    {ICON_lr_spkr},    				 {ICON_empty}			},    {"tv",    {ICON_tv},    				 {ICON_empty}			},     {"clear_ab",    {ICON_empty},    				 {ICON_empty}			},    {"seta",	    {ICON_empty},    				{ICON_empty}			},    {"setb",	    {ICON_empty},     				{ICON_empty}		    },    /* multi disc selection, but unavailable for this panel, so we use NULL */    {"disc1",       {ICON_empty},     				{ICON_empty} 			},    {"disc2",       {ICON_empty},                    {ICON_empty},			},    {"disc3",       {ICON_empty},                     {ICON_empty}			},    /* Disc selection, no need to turn off any disks */    {"disc1_on",    {ICON_empty}, 		    		{ICON_empty}			},    {"disc2_on",    {ICON_empty}, 		    		{ICON_empty} 			},    {"disc3_on",    {ICON_empty}, 		    		{ICON_empty}			},        {"disc1_off",   {ICON_empty},                    {ICON_empty}			},    {"disc2_off",   {ICON_empty},                    {ICON_empty}				},    {"disc3_off",   {ICON_empty},                    {ICON_empty}			},            {"disc_1_off",  {ICON_empty},                    {ICON_empty}			},    {"disc_2_off",  {ICON_empty},                    {ICON_empty}			},    {"disc_3_off",  {ICON_empty},                    {ICON_empty}			},    /* Audio selection */    {"mono_l",	    {ICON_empty}, 		    		{ICON_empty}			},    {"mono_r",	    {ICON_empty}, 		    		{ICON_empty}			},    {"stereo",	    {ICON_empty}, 		    		{ICON_empty}			},    {"vocal_l",	    {ICON_empty}, 		    		{ICON_empty}			},    {"vocal_r",	    {ICON_empty}, 		    		{ICON_empty}			},    {"vocal_off",   {ICON_empty},                    {ICON_empty}	        },    /* Play selection */    {"fb",	    	{ICON_empty}, 		    		{ICON_empty}			},    {"ff",	    	{ICON_empty}, 		    		{ICON_empty}			},    	{"pause_f",     {ICON_pause}, 		    		{ICON_empty}				},    {"pause",       {ICON_pause}, 		    		{ICON_play}				},    {"play",	    {ICON_play}, 		    		{ICON_pause}			},    {"stop",        {ICON_empty}, 		    		{ICON_play, ICON_pause} },    /* PBC selection */    {"pbc_on",      {ICON_empty},                     {ICON_program}		},    {"pbc_off",     {ICON_empty},                     {ICON_empty}		},    /* Intro/digest */    {"intro_on",    {ICON_empty}, 		    		{ICON_program}					},    {"intro_off",   {ICON_empty}, 		    		{ICON_empty}					},    /* Number of tracks */    {"more_on",     {ICON_empty}, 		    		{ICON_empty}					},    {"more_off",    {ICON_empty}, 		    		{ICON_empty}					},    /* Mic. colon, track, hyphen etc */    {"colon_on",    {ICON_colon1}, 		    		{ICON_empty}					},    {"colon_off",   {ICON_empty}, 		    		{ICON_colon1}					},    {"track",       {ICON_empty}, 		    		{ICON_empty}					},    {"hyphen_on",   {ICON_empty}, 		    		{ICON_empty}					},    {"hyphen_off",  {ICON_empty}, 		    		{ICON_empty}					},    /* Play sequence */    {"program",	    {ICON_program}, 		    		{ICON_empty}				},    {"shuffle",	    {ICON_empty}, 		    		{ICON_program}				},    /* Play off sequence */    {"program_off", {ICON_empty},                    {ICON_program}                            		},    {"shuffle_off", {ICON_empty},                    {ICON_empty}                           		},    /* Repeat related */    {"repeat_off",  {ICON_empty},                     {ICON_repeat}				},    {"repeat_one",  {ICON_repeat}, 		    		{ICON_empty}						},    {"repeat_all",  {ICON_repeat}, 		    		{ICON_empty}					},    /* CD type */    {"vcd",	    	{ICON_empty},                     {ICON_dvd}                              		},    {"cdda",        {ICON_empty},                    {ICON_empty}                                	},    /* TV type */    {"ntsc",	    {ICON_empty}, 		    		{ICON_empty}					},    {"pal",	    	{ICON_empty}, 		    		{ICON_empty}	         			},    /* Key shift */    {"key_up",	    {ICON_empty}, 		    		{ICON_empty}					},    {"key_down",    {ICON_empty}, 		    		{ICON_empty}					},    {"key_resume",  {ICON_empty}, 		    		{ICON_empty}					},    /* Initialization */    {"init_state",  {ICON_empty},                    {ICON_empty}   	},    {"panel1_off",  {ICON_empty },                    {ICON_empty },   	},    {"panel2_off",  {ICON_empty },                    {ICON_empty},   	},    {"panel3_off",  {ICON_empty },                    {ICON_empty },   	},    {"panel4_off",  {ICON_empty },                    {ICON_empty },  },     {"panel5_off",  {ICON_empty },                    {ICON_empty},  },     {"in_vts",      {ICON_empty },                     {ICON_empty }	                        },    {"pause_on",    {ICON_pause},     				{ICON_play}	},    {"pause_off",   {ICON_play},     				{ICON_pause}	},    {"angle_on",    {ICON_angle},     				{ICON_empty }  },     {"angle_off",   {ICON_empty },     				{ICON_angle}  },     {"ac3_on",      {ICON_empty},     				{ICON_empty }  },     {"ac3_off",     {ICON_empty },     				{ICON_empty}  },     {"a2b_a",       {ICON_empty},    				{ICON_empty}  },     {"a2b_b",       {ICON_empty},     				{ICON_empty }  },     {"a2b_cancel",  {ICON_empty },     				{ICON_empty}  },     {"chapter_repeat_on", {ICON_repeat},                    {ICON_empty},    	                        },    {"title_repeat_on", {ICON_repeat},                    {ICON_empty},    	                        },    {"chapter_repeat_off", {ICON_empty },                    {ICON_repeat},    	                        },    {"title_repeat_off", {ICON_empty },                    {ICON_repeat},    	                        },    {"dvdon",	    {ICON_dvd},                    {ICON_empty }, 	  	},    {"dvdoff", 	    {ICON_empty }, 		    		{ICON_dvd}						},    {"s1", 	    {ICON_s1,ICON_s4,ICON_s7,ICON_s10}, 		        {ICON_s2, ICON_s3,ICON_s5,ICON_s6,ICON_s8,ICON_s9,ICON_s11,ICON_s12}						},    {"s2", 	    {ICON_s2,ICON_s5,ICON_s8, ICON_s11}, 		    	{ICON_s1,ICON_s3,ICON_s4,ICON_s6,ICON_s7,ICON_s9,ICON_s10,ICON_s12}						},    {"s3", 	    {ICON_s3,ICON_s6,ICON_s9,ICON_s12}, 		    	{ICON_s1,ICON_s2,ICON_s4,ICON_s5,ICON_s7,ICON_s8,ICON_s10,ICON_s11}						},           {"angle", 	    {ICON_angle}, 		        {ICON_empty}						},    {"circle_off",  {ICON_empty }, 		    		{ICON_s1, ICON_s2, ICON_s3}						},    {"multi_on",    {ICON_empty}, 		    		{ICON_empty }							},};/* * C-program will refer to a message by VFDMSG_xxx where xxx is the * name you assigned in column 1. */VFD_MSG VFD_msg[] = {    {"nodisc",	{CHAR_n,CHAR_O,CHAR_, CHAR_d,CHAR_I,CHAR_S,CHAR_C,CHAR_end}},    {"undisc",	{CHAR_U,CHAR_n,CHAR_, CHAR_d,CHAR_I,CHAR_S,CHAR_C,CHAR_end}},    {"open",	{CHAR_, CHAR_O,CHAR_P,CHAR_E,CHAR_n,              CHAR_end}},    {"close",	{CHAR_, CHAR_C,CHAR_L,CHAR_O,CHAR_S,CHAR_E,       CHAR_end}},    {"vcd30",	{CHAR_V,CHAR_C,CHAR_d,CHAR_, CHAR_3,CHAR_O,       CHAR_end}},    {"clearall",{CHAR_, CHAR_, CHAR_, CHAR_, CHAR_, CHAR_, CHAR_, CHAR_end}},    {"stop",	{CHAR_, CHAR_S ,CHAR_t , CHAR_O ,CHAR_P ,CHAR_ , CHAR_end}},    {"root",	{CHAR_, CHAR_R ,CHAR_O , CHAR_O ,CHAR_t ,CHAR_ , CHAR_end}},    {"title",	{CHAR_, CHAR_t ,CHAR_I , CHAR_t ,CHAR_L ,CHAR_E, CHAR_end}},};/* * Spinning wheel */unsigned short VFD_wheel[] = {    /* Counter clockwise. */	ICON_s1, ICON_s2,ICON_s3};/* * Ring of spinning wheel */unsigned short VFD_ring[] = {    ICON_empty };/* * Display position of characters in VFD_msg. */unsigned char VFD_msg_position[] = {    VFD_TRACK,  VFD_TRACK+1, VFD_TRACK+2,VFD_MIN100, VFD_MINUTE, VFD_MINUTE+1,    VFD_SECOND, VFD_SECOND+1,VFD_CHAPTER, VFD_CHAPTER+1  };#ifdef MN12510/* 12510 programming sequence *//* Commands */unsigned char VFD_12510_cmd[] = {    0, 1, 2, 3, 4, 5, 6, 7, 8, 0xc, 0xd, 0xe}; /* Corresponding data */unsigned char VFD_12510_dat[] = {    0x01,       /* FLPCNT:                                              */    0x8e,       /* DGTCNT:  Specify digit: 9G, 15/16                    */    0x0f,       /* SEGCNT:  Specify segment: 16P                        */    0x1f,       /* P01CNT:  [G12,G11,G10,G9,P12,P11,P10,P9]             */    0x0f,       /* P2DIR:   P2x [o/i,o/i,o/i,o/i]                       */    0xff,       /* P2CNT:   [G16/P13,G15/P14,G14/P15,G13/P16,d,d,d,d]   */    0x10,       /* P3DIR:   P3x [o/i,o/i,o/i,o/i,o/i]                   */    0x10,       /* P3CNT:   [K4/P34,K3/P33,K2/P32,K1/P31,K0/P30]        */    0x15,       /* KEYCNT:  Key specification (6 keys)                  */    0x17,       /* P01DATA: P0x P1x [3H/3L,2H/2L,1H/1L,0H/0L, ...       */    0x00,       /* P2DATA:  P2x [3H/3L,2H/2L,1H/1L,0H/0L]               */    0x0f        /* P3DATA:  P3x [3H/3L,2H/2L,1H/1L,0H/0L]               */};#endif /* MN12510 */#endif

⌨️ 快捷键说明

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