best4n
Newbie
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: