aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <msattr@gmail.com>2020-02-24 08:57:46 -0600
committerMatt Strapp <msattr@gmail.com>2020-02-24 08:57:46 -0600
commit6065c622ce9d34085ad6cf384643b622608af594 (patch)
tree3170ca524bae5f344d1d8e457881c040fc4e5a2e
parentI hate this (Lab 3 partially working again) (diff)
downloadee2361-6065c622ce9d34085ad6cf384643b622608af594.tar
ee2361-6065c622ce9d34085ad6cf384643b622608af594.tar.gz
ee2361-6065c622ce9d34085ad6cf384643b622608af594.tar.bz2
ee2361-6065c622ce9d34085ad6cf384643b622608af594.tar.lz
ee2361-6065c622ce9d34085ad6cf384643b622608af594.tar.xz
ee2361-6065c622ce9d34085ad6cf384643b622608af594.tar.zst
ee2361-6065c622ce9d34085ad6cf384643b622608af594.zip
I hate this
Diffstat (limited to '')
-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 271b324..f99a204 100644
--- a/Lab3.X/numpad.c
+++ b/Lab3.X/numpad.c
@@ -17,8 +17,9 @@ void padDelay(long n) {
char readKeyPadRAW(void) {
int i;
char num;
- num = (!_RB15 << 3) | (!_RB14 << 2) | (!_RB13 << 1) | !_RB12;
+ num = '\0'
LATB |= (0b1111 << 12);
+ padDelay(5);
for (i = 0; i < 4; i++) {
LATB ^= 0b1 << (15 - i);
padDelay(10);