embpic
Advanced Member level 3
- Joined
- May 29, 2013
- Messages
- 742
- Helped
- 80
- Reputation
- 160
- Reaction score
- 77
- Trophy points
- 1,308
- Location
- india
- Activity points
- 5,213
hello frnds
i was doing and trying to compile code with micro #if but it gives me error of undefined identifier at #if.
my code is
sbit sw1=P0^0;
#if sw1==0
sbit led1=P1^0;
#else
sbit led1=P1^2;
#endif
thanx
- - - Updated - - -
even i try by #defined that var.
and also
#if sw1 alzo
i was doing and trying to compile code with micro #if but it gives me error of undefined identifier at #if.
my code is
sbit sw1=P0^0;
#if sw1==0
sbit led1=P1^0;
#else
sbit led1=P1^2;
#endif
thanx
- - - Updated - - -
even i try by #defined that var.
and also
#if sw1 alzo