Top row and numbers row

This commit is contained in:
Dejvino 2023-04-02 13:32:19 +02:00
parent 1b57fbd6f4
commit b34801eca1

View File

@ -141,7 +141,30 @@ void onSlaveClockInterrupt() {
void setupKeyMapping() { void setupKeyMapping() {
m[0] = 0; m[0] = 0;
m[223] = ' '; 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 // top letter row
m[246] = '\t'; m[246] = '\t';
m[142] = 'q'; m[142] = 'q';