This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C141 error at line 12: syntax error near ';' and syntax error near ')' encountered


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();
                }
              }