Eshal
Advanced Member level 1
- Joined
- Aug 29, 2012
- Messages
- 470
- Helped
- 16
- Reputation
- 32
- Reaction score
- 15
- Trophy points
- 1,298
- Location
- Nowhere :)
- Activity points
- 5,149
Ohh I see.
And I have already tried with if((P2^1 == 0)&&(P2^0 == 0))
But yet result was same as I described above.
When LDR is dark and button is pressed then the LED at P1.0 should glow. It means its cathode which is connected at pin P1.0 should at low when LDR is dark and button is pressed.
And I have already tried with if((P2^1 == 0)&&(P2^0 == 0))
But yet result was same as I described above.
When LDR is dark and button is pressed then the LED at P1.0 should glow. It means its cathode which is connected at pin P1.0 should at low when LDR is dark and button is pressed.