1 #include <REGX52.H> 2 void delay_and_check_1(void); 3 void delay_and_check(void); 4 void check_button_pres(void); 5 void display_value(void); 6 #define column 000001111; 7 unsigned char store=0x00; 8 unsigned char count=0x00; 9 void main(void){ 10 while (1){ 11 P0 = column; 12 while (P0 == column){} 13 check_button_pres(); } }