Home > other >  MCU program problem
MCU program problem

Time:12-05


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 variable

CodePudding user response:

If you can't find where there is a repeated
Can see
# ifdef
# define
# endif
Usage, many large. H file can have this

CodePudding user response:

A global search

CodePudding user response:

Other files inside looking for the same definition of these statements, repeating definition

CodePudding 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;
  • Related