int main(void) { //SETUP_TIMEOUT(10); SETUP_PWM(); unsigned char i = 0; while(1) { SET_PWM(++i); _delay_ms(4); } }
int main(void) { int i = 0; SETUP_PWM(); //SETUP_TIMEOUT(10); while(1) { DDRB |= (1 << PB3); i++; i = i % 256; SET_PWM(i); _delay_ms(10); } }