best4n
Newbie
- Joined
- Jan 31, 2012
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,297
int s;
I was going through part of a PIC code i downloaded using the CCS compiler, plz can someone explain to me the meaning of " if (s & 8)" , s was declared as an integer, plz i would be anticipating help soonest, thanks in advance.
Code C - [expand] 1 2 3 4 5 6 7 if (s & 8) OUTPUT_HIGH(PIN_A3); else OUTPUT_HIGH(PIN_A2); delay_ms(1); OUTPUT_LOW (PIN_A2); OUTPUT_LOW (PIN_A3);
I was going through part of a PIC code i downloaded using the CCS compiler, plz can someone explain to me the meaning of " if (s & 8)" , s was declared as an integer, plz i would be anticipating help soonest, thanks in advance.
Last edited by a moderator: