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

📄 vfd.h

📁 一款收款机C源代码!因为是几年前的代码了
💻 H
字号:
#ifndef _VFD_H
#define _VFD_H

#define		VFD_BIT_NUM			MAX_LCD_NUM

#define  	VFD_CLR_DIR        	pd7_1
#define  	VFD_CLK_DIR    		pd7_2
#define  	VFD_DI_DIR        	pd7_0
#define  	VFD_CLR        		p7_1
#define  	VFD_CLK        		p7_2
#define  	VFD_DI         		p7_0


#define 	VFD_NUM					10						// number of digits of the display
#define 	VFD_CHAR_DISC   		0xa3   				// change it in further
#define 	VFD_CHAR_SERV   		0x9c
#define 	VFD_CHAR_SPACE			0xFF					// Display char for VFD
#define 	VFD_CHAR_MINUS			0xBF
#define	    VFD_CHAR_DEC			0x7F					// The decimal dots. Create by JWM
        	            		
#define 	VFD_CHAR_A				0x88
#define 	VFD_CHAR_b				0x83
#define 	VFD_CHAR_C				0xC6
#define 	VFD_CHAR_d				0xA1
#define 	VFD_CHAR_E				0x86
#define 	VFD_CHAR_F				0x8E
#define 	VFD_CHAR_G				0x90
#define 	VFD_CHAR_H				0x89
#define 	VFD_CHAR_I				0xF9
#define 	VFD_CHAR_J				0xF0
#define 	VFD_CHAR_K				0xFF
#define 	VFD_CHAR_L				0xC7
#define 	VFD_CHAR_M				0xFF
#define 	VFD_CHAR_n				0xab
#define 	VFD_CHAR_O				0xC0
#define 	VFD_CHAR_P				0x8C
#define 	VFD_CHAR_Q				0xFF
#define 	VFD_CHAR_R				0xAF
#define 	VFD_CHAR_S				0x92
#define 	VFD_CHAR_t				0x87
#define 	VFD_CHAR_U				0xC1
#define 	VFD_CHAR_V				0xFF
#define 	VFD_CHAR_W				0xFF
#define 	VFD_CHAR_X				0xFF
#define 	VFD_CHAR_y				0x91
#define 	VFD_CHAR_Z	    		0XA4

void Vfd_DispChar(byte pos, byte temp, byte dots);
byte Vfd_ReadJumper(void);
void Vfd_ClrPeriod(byte pos);
void Vfd_InsPeriod(byte pos);
void Vfd_Init(void);
void Vfd_Clr(void);
void Vfd_Cls(void);
void Vfd_Flush(void);

#endif

⌨️ 快捷键说明

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