单片机与键盘接口程序

源代码在线查看: code.h

软件大小: 89 K
上传用户: huajunun
关键词: 单片机 键盘接口 程序
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				unsigned char code key[][2] = {
				0x1C, 0x41,  //'a'
				0x32, 0x42,  //'b'
				0x21, 0x43,  //'c'
				0x23, 0x44,  //'d'
				0x24, 0x45,  //'e'
				0x2B, 0x46,  //'f'
				0x34, 0x47,  //'g'
				0x33, 0x48,  //'h'
				0x43, 0x49,  //'i'
				0x3B, 0x4A,  //'j'
				0x42, 0x4B,  //'k'
				0x4B, 0x4C,  //'l'
				0x3A, 0x4D,  //'m'
				0x31, 0x4E,  //'n'
				0x44, 0x4F,  //'o'
				0x4D, 0x50,  //'p'
				0x15, 0x51,  //'q'
				0x2D, 0x52,  //'r'
				0x1B, 0x53,  //'s'
				0x2C, 0x54,  //'t'
				0x3C, 0x55,  //'u'
				0x2A, 0x56,  //'v'
				0x1D, 0x57,  //'w'
				0x22, 0x58,  //'x'
				0x35, 0x59,  //'y'
				0x1A, 0x5A,  //'z'
				0x45, 0x30,  //'0'
				0x16, 0x31,  //'1'
				0x1E, 0x32,  //'2'
				0x26, 0x33,  //'3'
				0x25, 0x34,  //'4'
				0x2E, 0x35,  //'5'
				0x36, 0x36,  //'6'
				0x3D, 0x37,  //'7'
				0x3E, 0x38,  //'8'
				0x46, 0x39,  //'9'
				
				0x70, 0x60,  //'0'
				0x69, 0x61,  //'1'
				0x72, 0x62,  //'2'
				0x7A, 0x63,  //'3'
				0x6B, 0x64,  //'4'
				0x73, 0x65,  //'5'
				0x74, 0x66,  //'6'
				0x6C, 0x67,  //'7'
				0x75, 0x68,  //'8'
				0x7D, 0x69,  //'9'
				
				0x4C, 0xBA,  //';'
				0x55, 0xBB,  //'='
				0x41, 0xBC,  //','
				0x4E, 0xBD,  //'-'
				0x49, 0xBE,  //'.'
				0x4A, 0xBF,  //'/'
				0x0E, 0xC0,  //'`'
				0x54, 0xDB,  //'['
				0x5D, 0xDC,  //'\'
				0x5B, 0xDD,  //']'
				0x52, 0xDE,  //'''
				
				0x7C, 0x6A,  //'*'
				0x79, 0x6B,  //'+'
				0x7B, 0x6D,  //'-'
				0x71, 0x6E,  //'.'
				
				0x29, 0x20,  //space
				
				0x66, 0x08,  //back
				0x12, 0x10,  //shift
				0x59, 0x10,  //shift
				0x14, 0x11,  //ctrl
				0x5A, 0x0D,  //enter
				0x11, 0x12,  //alt
				0x0D, 0x09,  //table
				0x58, 0x14,  //caps lock
				0x77, 0x90,  //num lock 
				
				0,0
				};
				
				unsigned char code key_ex[][2] = {
				0x70, 0x2D,  //insert
				0x6C, 0x24,  //home
				0x7D, 0x21,  //page up
				0x7A, 0x22,  //page down
				0x69, 0x23,  //end
				0x71, 0x2E,  //delete
				0x6B, 0x25,  //left
				0x75, 0x26,  //up
				0x74, 0x27,  //right
				0x72, 0x28,  //down
				0x14, 0x11,  //ctrl
				0x11, 0x12,  //alt
				0x5A, 0x0D,  //enter
				
				0x4A, 0x6F,  //'/'
				
				0,0
				};
							

相关资源