CrossRoads:
Will your external pullups be disconnected during operation?
If not, then just leave the weak (30K to 50K ohm) internal pullups as is, and add your own if you really think they are needed.
You should be able to disable the internal pullups by using
pinMode (keypadPinX, INPUT);
for the various pins after you Keypad.begin() or however the library starts in setup().
Thank you for replying Sir,
My Pull ups will not be disconnected during the operation.
Thank you for your help sir,
Will only specifing the pinMode to input change the mode from internal pullup to pullup from the library?
And is this what you are talking about?
const byte ROWS = 3; //four rows
const byte COLS = 4; //four columns
//define the cymbols on the buttons of the keypads
char hexaKeys[ROWS][COLS] = {
{'0','1','2','3'},
{'4','5','6','7'},
{'8','9','A','B'}
};
byte rowPins[ROWS] = {10, 11, 12}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {9, 8, 7, 6}; //connect to the column pinouts of the keypad
//initialize an instance of class NewKeypad
Keypad customKeypad = Keypad( makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);
void setup(){
Serial.begin(9600);
pinMode(10,INPUT);
pinMode(9,INPUT);
pinMode(8,INPUT);
pinMode(6,INPUT);
pinMode(11,INPUT);
pinMode(12,INPUT);
pinMode(7,INPUT);
digitalWrite(10,HIGH);
digitalWrite(11,HIGH);
digitalWrite(12,HIGH);
digitalWrite(9,HIGH);
digitalWrite(8,HIGH);
digitalWrite(7,HIGH);
digitalWrite(6,HIGH);
}
void loop(){
char customKey = customKeypad.getKey();
if (customKey){
Serial.println(customKey);
}
if(customKey == '0'){
Serial.println("Hello");
}
}
[code]