
Program is correct, why will be displayed after compiled to define?
CodePudding user response:
Are you in other files have been defined RS, RW, E, repeated definition here, you can be in front of the statement and extern identifier to eliminate the error,CodePudding user response:
In other documents defined through RS sbit such as variableCodePudding user response:
If you can't find where there is a repeatedCan see
# ifdef
# define
# endif
Usage, many large. H file can have this
CodePudding user response:
A global searchCodePudding user response:
Other files inside looking for the same definition of these statements, repeating definitionCodePudding user response:
Defines the three pins, redefine, can solve this problem,Sbit b_Rs P1=^ 0;
Sbit b_Rw=P3 ^ 7;
Sbit b_E=P3 ^ 6;