ÿþ #include "avr/io.h" int main ( ) { DDRB = 0x08; PORTA = 0x80; TCCR0 = 0x73; while (1) { switch ((PINA&0x80)) { case 0: OCR0 = 64; break; case 1: OCR0 = 127; break; } } return 0; }