#define F_CPU 16000000UL #include #include #include #include "display.h" #include "keypad.h" volatile uint8_t lcdptr=0, lcdcmd=0xC0, lcdoff=0; // unsigned char LCDline[32]={"Keypad INT "}; void init_display() { DDRA = 0xFF; PORTC &= 0xAF; DDRC |= 0x50; PORTC &= 0xBF; PORTA = 0x38; PORTC |= 0x10; PORTC &= 0xEF; PORTA = 0x0C; PORTC |= 0x10; PORTC &= 0xEF; PORTA = 0x01; PORTC |= 0x10;; PORTC &= 0xEF; _delay_ms(2); TCCR0B |= (1<