aboutsummaryrefslogtreecommitdiffstats
path: root/Lab3.X/numpad.c
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2020-02-26 08:27:23 -0600
committerRossTheRoss <msattr@gmail.com>2020-02-26 08:27:23 -0600
commit887971d27a89b36e4a6126b97dc04f820a51bd51 (patch)
tree541920230f7bc7d09f1dc6db049bf6b38e2485fc /Lab3.X/numpad.c
parente (diff)
downloadee2361-887971d27a89b36e4a6126b97dc04f820a51bd51.tar
ee2361-887971d27a89b36e4a6126b97dc04f820a51bd51.tar.gz
ee2361-887971d27a89b36e4a6126b97dc04f820a51bd51.tar.bz2
ee2361-887971d27a89b36e4a6126b97dc04f820a51bd51.tar.lz
ee2361-887971d27a89b36e4a6126b97dc04f820a51bd51.tar.xz
ee2361-887971d27a89b36e4a6126b97dc04f820a51bd51.tar.zst
ee2361-887971d27a89b36e4a6126b97dc04f820a51bd51.zip
e
Diffstat (limited to 'Lab3.X/numpad.c')
-rw-r--r--Lab3.X/numpad.c3
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
+ */