Browse Source

Top row and numbers row

master
Dejvino 1 year ago
parent
commit
b34801eca1
1 changed files with 25 additions and 2 deletions
  1. +25
    -2
      terminal_keyboard_emulator.ino

+ 25
- 2
terminal_keyboard_emulator.ino View File

@@ -141,8 +141,31 @@ void onSlaveClockInterrupt() {

void setupKeyMapping() {
m[0] = 0;
m[223] = ' ';
// top letter row
m[223] = ' '; // Spacebar
// top row special
m[63] = 0x12; // ?? Setup
m[62] = 'j'; // up
m[61] = 'k'; // down
m[59] = 'h'; // left
m[60] = 'l'; // right
// top numbers row
m[228] = 0x1B; // ESC
m[206] = '1';
m[205] = '2';
m[204] = '3';
m[203] = '4';
m[202] = '5';
m[201] = '6';
m[200] = '7';
m[199] = '8';
m[198] = '9';
m[207] = '0';
m[210] = '-';
m[161] = '^';
m[0] = ' '; // Empty cap
m[247] = 0x08; // Backspace
m[56] = 0x10; // Break
// top letter row
m[246] = '\t';
m[142] = 'q';
m[142+32] = 'Q';


Loading…
Cancel
Save