{'y','n','7','8',KEY\_F6,'h','m','u','j',' '},
{'o','.','0','9',KEY\_F7,'l',',','i','k',KEY\_FN},
{'p','/','-',KEY\_LEFT\_ARROW,KEY\_F8,';',KEY\_UP\_ARROW,'[','\'',KEY\_DOWN\_ARROW},
{KEY\_F10,KEY\_DELETE,'=',KEY\_BACKSPACE,KEY\_F9,KEY\_F11,KEY\_RETURN,']','\\',KEY\_RIGHT\_ARROW},
{KEY\_ESC,KEY\_LEFT\_GUI,'`',KEY\_LEFT\_CTRL,KEY\_TAB,'a','q','z',KEY\_CAPS\_LOCK,KEY\_LEFT\_SHIFT},
{KEY\_F1,KEY\_LEFT\_ALT,'1',KEY\_F2,'2','s','w','x','d','c'},
{KEY\_F3,' ','4',KEY\_F4,'3','e','r','b','f','v'},
{KEY\_F5,'6','5',0,0,0,'t','g',0,0}
void setup() {
Keyboard.begin();
Keyboard.releaseAll();
// 初始化扫描pin
for(int i=0; i
0
int index = 0;
for(int i = 0; i < btnPinA\_len; i ++) {
int val = analogRead(btnPinA[i]);
if(val > 600) {
btnTmp[index] = 1;
} else {
btnTmp[index] = 0;
index ++;
for(int i = 0; i < btnPinD\_len; i ++) {
btnTmp[index] = digitalRead(btnPinD[i]);
index ++;