Quantcast
Viewing latest article 1
Browse Latest Browse All 16

testing 3 port bit values and Anding the values

i am flashing an led, but if i detect that 3 port pins all have 0 on them, Anding the result all to zero, i wish the led to stop flashing. But why doesnt his work?

if (RB3 & RB4 & RB5 == 0){
RB6 = RB6;
}
else
RB6 = !RB6;


Viewing latest article 1
Browse Latest Browse All 16

Trending Articles