blob: fcd87cc78de749c8c7390229f8e4bdb3dd87164e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#include "xc.h"
void initKeyPad(void) {
TRISA = 0b0000000000011111; //set port A to inputs,
LATA = 0x0000; //Set all of port A to LOW
CNPU1bits.CN11PUE = 1;
CNPU1bits.CN12PUE = 1;
CNPU1bits.CN13PUE = 1;
CNPU1bits.CN14PUE = 1;
}
|