Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (14 sloc) 0.32 kB
/* ------------ OUTPUT ------------------ */
void setupOutput(){
DDRB |= B00000011; // pin 8 & 9 as output
outputOff();
}
void out1(char state){
PORTB = (state&0x1) ? PORTB | 0x1 : PORTB & 0xfe;
}
void out2(char state){
PORTB = (state&0x1) ? PORTB | 0x2 : PORTB & 0xfd;
}
void outputOff(){
PORTB &= 0xfc;
}
Jump to Line
Something went wrong with that request. Please try again.