#include #define F_CPU 2500000UL #include #include #include "output.h" ISR(TIM1_COMPA_vect){ static volatile unsigned char duty = 0; // do these need to be volatile? static volatile unsigned char state = 0; out_duty(duty++); if (state++ % 16 == 0) led_level(255); else led_level(0); } int main() { static unsigned char level = 0; float ms = 0; // pwm init_pwm(); led_level(4); out_on(); // audio stuff init_audio_clock(); // globally enable interrupts sei(); // Clock divider - Data sheet Page 82 TCCR0B = (0<