|
|
@ -7,54 +7,34 @@ Keyboard::Keyboard() { |
|
|
|
} |
|
|
|
|
|
|
|
void gotTouch0() { |
|
|
|
delay(10); |
|
|
|
if (touchRead(T0) < threshold[0]) |
|
|
|
touchDetected[0] = true; |
|
|
|
touchDetected[0] = true; |
|
|
|
} |
|
|
|
void gotTouch1() { |
|
|
|
delay(10); |
|
|
|
if (touchRead(T1) < threshold[1]) |
|
|
|
touchDetected[1] = true; |
|
|
|
touchDetected[1] = true; |
|
|
|
} |
|
|
|
void gotTouch2() { |
|
|
|
delay(10); |
|
|
|
if (touchRead(T2) < threshold[2]) |
|
|
|
touchDetected[2] = true; |
|
|
|
touchDetected[2] = true; |
|
|
|
} |
|
|
|
void gotTouch3() { |
|
|
|
delay(10); |
|
|
|
if (touchRead(T3) < threshold[3]) |
|
|
|
touchDetected[3] = true; |
|
|
|
touchDetected[3] = true; |
|
|
|
} |
|
|
|
void gotTouch4() { |
|
|
|
delay(10); |
|
|
|
if (touchRead(T4) < threshold[4]) |
|
|
|
touchDetected[4] = true; |
|
|
|
touchDetected[4] = true; |
|
|
|
} |
|
|
|
void gotTouch5() { |
|
|
|
delay(10); |
|
|
|
if (touchRead(T5) < threshold[5]) |
|
|
|
touchDetected[5] = true; |
|
|
|
touchDetected[5] = true; |
|
|
|
} |
|
|
|
void gotTouch6() { |
|
|
|
delay(10); |
|
|
|
if (touchRead(T6) < threshold[6]) |
|
|
|
touchDetected[6] = true; |
|
|
|
touchDetected[6] = true; |
|
|
|
} |
|
|
|
void gotTouch7() { |
|
|
|
delay(10); |
|
|
|
if (touchRead(T7) < threshold[7]) |
|
|
|
touchDetected[7] = true; |
|
|
|
touchDetected[7] = true; |
|
|
|
} |
|
|
|
void gotTouch8() { |
|
|
|
delay(10); |
|
|
|
if (touchRead(T8) < threshold[8]) |
|
|
|
touchDetected[8] = true; |
|
|
|
touchDetected[8] = true; |
|
|
|
} |
|
|
|
void gotTouch9() { |
|
|
|
delay(10); |
|
|
|
if (touchRead(T9) < threshold[9]) |
|
|
|
touchDetected[9] = true; |
|
|
|
touchDetected[9] = true; |
|
|
|
} |
|
|
|
|
|
|
|
bool Keyboard::getTouchDetected(uint8_t pad) { |
|
|
|