@martin
Warum nicht Bild  

sbi(PORTB, 2) -> PORTB |= (1<<2);
cbi(PORTB, 2) -> PORTB &= ~(1<<2);

Sollte mit jedem Complier funktionieren der ANSI C unterstützt ( also auch WinAVR und Codevision )... Bild  

MfG Kjion