diff options
-rw-r--r-- | Lab3.X/numpad.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lab3.X/numpad.c b/Lab3.X/numpad.c index 0768eba..455ef19 100644 --- a/Lab3.X/numpad.c +++ b/Lab3.X/numpad.c @@ -20,6 +20,7 @@ char readKeyPadRAW(void) { //0
num = (_RA0 << 3) | (_RA1 << 2) | (_RA2 << 1) | _RA3;
LATB |= (0b1111 << 12);
+ padDelay(5);
for (i = 0; i < 4; i++) {
LATB ^= 0b1 << (15 - i);
padDelay(10);
@@ -102,4 +103,4 @@ Outputs<8:5> = 0b1110; // Set Row 4 output Low delay(1us);
RowFour = Inputs<4:1>; // returns 0b1111 (no buttons pressed in row 4)
- */
\ No newline at end of file + */
|