#include #include #include #include unsigned char lcd_digits[10] __attribute__((progmem)) = {0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f}; unsigned char key; unsigned char data[4]={0,0,0,0}; void actual_data(unsigned int ad) { data[3]=ad%10; data[2]=(ad/10)%10; data[1]=(ad/100)%10; data[0]=(ad/1000)%10; } ISR(TIMER0_COMP_vect) { static unsigned char num=0; PORTC=PORTC&0xf0|1<