You are on page 1of 1

#include <avr/io.

h>
int main (void) {
DDRB = 0b00000011;
while (1) {
if (bit_is_clear (PINB,0) {
PORTB= 0b00001100; }
else if (bit_is_clear (PINB,1) {
PORTB= 0b00000000; }
}
}

You might also like