I've got a C program for a Tiny84.
I have 2 ports PB0 and PB1 that I've set as outputs in the DDR.
I can set control the state of each port using the following...
PORTB = 0b0000010; // sets PB1 high, all others low.
PORTB = _BV(PORTB1);
But how would I set PB1 to logic 1 and leave the others in their previous state.
What about setting the PB1 to 0 (zero) and leave the other bits alone.
I'm sure this question must have been asked before, but I'm not entirely sure what to search for.