warum so kompliziert?
Code:
//switch on
PORTB |= (1<<PB0) | (1<<PB2) | (1<<PB4); //erste möglichkeit
PORTB |= (0x15 << PB0); //zweite möglichkeit

//switch off
PORTB &= ~((1<<PB0) | (1<<PB2) | (1<<PB4)); //erste möglichkeit
PORTB &= ~(0x15 << PB0); //zweite möglichkeit