发 帖  
原厂入驻New

求基于AVR单片机建立PS/2的SimpleSoft的测试程序?

88 AVR单片机 AVR 单片机
分享
基于AVR单片机建立PS/2的SimpleSoft的测试程序
0
2020-11-23 07:43:20   评论 分享淘帖 邀请回答
1个回答
#ifndef PS2__H
#define PS2__H
#include "D:\ICC_H\CmmICC.H"
/*
uint8 code SetConfigs[] =
{
}
uint8 code GetConfigs[] =
{
}
*/
uint8 code unshifted[][2] =
{
0x1C, 'a',
0x32, 'b',
0x21, 'c',
0x23, 'd',
0x24, 'e',
0x2B, 'f',
0x34, 'g',
0x33, 'h',
0x43, 'i',
0x3B, 'j',
0x42, 'k',
0x4B, 'l',
0x3A, 'm',
0x31, 'n',
0x44, 'o',
0x4D, 'p',
0x15, 'q',
0x2D, 'r',
0x1B, 's',
0x2C, 't',
0x3C, 'u',
0x2A, 'v',
0x1D, 'w',
0x22, 'x',
0x35, 'y',
0x1A, 'z',
0x45, '0',
0x16, '1',
0x1E, '2',
0x26, '3',
0x25, '4',
0x2E, '5',
0x36, '6',
0x3D, '7',
0x3E, '8',
0x46, '9',
0x0E, '`',
0x4E, '-',
0x55, '=',
0x5D, '\\',
0x29, ' ',
0x54, '[',
0x5B, ']',
0x4C, ';',
0x52, '\'',
0x41, ',',
0x49, '.',
0x4A, '/',
0x71, '.',
0x70, '0',
0x69, '1',
0x72, '2',
0x7A, '3',
0x6B, '4',
0x73, '5',
0x74, '6',
0x6C, '7',
0x75, '8',
0x7D, '9',
0x66, ' ', // back
};
uint8 code shifted[][2] =
{
0x1C, 'A',
0x32, 'B',
0x21, 'C',
0x23, 'D',
0x24, 'E',
0x2B, 'F',
0x34, 'G',
0x33, 'H',
0x43, 'I',
0x3B, 'J',
0x42, 'K',
0x4B, 'L',
0x3A, 'M',
0x31, 'N',
0x44, 'O',
0x4D, 'P',
0x15, 'Q',
0x2D, 'R',
0x1B, 'S',
0x2C, 'T',
0x3C, 'U',
0x2A, 'V',
0x1D, 'W',
0x22, 'X',
0x35, 'Y',
0x1A, 'Z',
0x45, '0',
0x16, '1',
0x1E, '2',
0x26, '3',
0x25, '4',
0x2E, '5',
0x36, '6',
0x3D, '7',
0x3E, '8',
0x46, '9',
0x0E, '~',
0x4E, '_',
0x55, '+',
0x5D, '|',
0x29, ' ',
0x54, '{',
0x5B, '}',
0x4C, ':',
0x52, '"',
0x41, &#39;<&#39;,
0x49, &#39;>&#39;,
0x4A, &#39;?&#39;,
0x71, &#39;.&#39;,
0x70, &#39;0&#39;,
0x69, &#39;1&#39;,
0x72, &#39;2&#39;,
0x7A, &#39;3&#39;,
0x6B, &#39;4&#39;,
0x73, &#39;5&#39;,
0x74, &#39;6&#39;,
0x6C, &#39;7&#39;,
0x75, &#39;8&#39;,
0x7D, &#39;9&#39;,
0x66, &#39; &#39;, // back
};
#endif
2020-11-23 14:20:02 评论

举报

只有小组成员才能发言,加入小组>>

348个成员聚集在这个小组

加入小组

创建小组步骤

关闭

站长推荐 上一条 /8 下一条

快速回复 返回顶部 返回列表