Middle letter row

This commit is contained in:
Dejvino 2023-04-02 15:21:09 +02:00
parent b34801eca1
commit dc7d9e82b6

View File

@ -109,10 +109,8 @@ void onSlaveClockInterrupt() {
receivingStep = 0; receivingStep = 0;
receivingBit = 0; receivingBit = 0;
test = 0; test = 0;
digitalWrite(outPin, HIGH);
} else if (receivingData == 1) { } else if (receivingData == 1) {
receivingStep++; receivingStep++;
digitalWrite(outPin, HIGH);
} }
if (receivingData == 1 && test == 0) { if (receivingData == 1 && test == 0) {
test = 1; test = 1;
@ -127,7 +125,6 @@ void onSlaveClockInterrupt() {
counter++; counter++;
receivingStep = 0; receivingStep = 0;
receivingBit = 0; receivingBit = 0;
digitalWrite(outPin, LOW);
if (counter >= numbits) { if (counter >= numbits) {
receivingData = 0; receivingData = 0;
} }
@ -192,6 +189,31 @@ void setupKeyMapping() {
m[245] = 0x0A; m[245] = 0x0A;
m[128] = 0x7F; m[128] = 0x7F;
// middle letter row // middle letter row
m[158] = 'a';
m[158+32] = 'A';
m[140] = 's';
m[140+32] = 'S';
m[153] = 'd'; // TODO
m[153+32] = 'D'; // TODO
m[153] = 'f';
m[153+32] = 'F';
m[152] = 'g';
m[152+32] = 'G';
m[151] = 'h';
m[151+32] = 'H';
m[149] = 'j';
m[149+32] = 'J';
m[148] = 'k';
m[148+32] = 'K';
m[147] = 'l';
m[147+32] = 'L';
m[196] = ';';
m[196+32] = '+';
m[197] = ':';
m[197+32] = '*';
m[162] = ']';
m[162+32] = '}';
m[242] = 0x0D;
/* /*
m[] = ''; m[] = '';
m[] = ''; m[] = '';