Unsigned Short Char Char: "1" "Key:" "Times:"
Unsigned Short Char Char: "1" "Key:" "Times:"
char txt[6];
// Keypad module connections
char keypadPort at PORTA;
// End Keypad module connections
char i;
// Loop variable
void main(){
// ANSEL = 0; // Configure AN pins as digital I/O
// ANSELH = 0;
// C1ON_bit = 0; // Disable comparators
// C2ON_bit = 0;
Keypad_Init(); // Initialize Keypad
//ANSELB = 0; // Configure AN pins as digital I/O
// ANSELC = 0;
cnt = 0; // Reset counter
// ANSELB = 0; // Configure AN pins as digital I/O
//ANSELC = 0;
Lcd_Out(1, 1, "1");
Lcd_Out(1, 1, "Key :"); // Write message text on LCD
Lcd_Out(2, 1, "Times:");
do {
kp = 0; // Reset key code variable
Delay_ms(2000);