switched it up to this and it still isn't working
ISR(TIMER0_COMPA_vect)
{
//toggle the pin high then low
PORTC |= (1<<PORTC2);
PORTC &= ~(1<<PORTC2);
/*
//Update the OCR0A value
pos++;
OCR0A = timer[pos];
if(pos==3)
pos=0;
*/
}
switched it up to this and it still isn't working
ISR(TIMER0_COMPA_vect)
{
//toggle the pin high then low
PORTC |= (1<<PORTC2);
PORTC &= ~(1<<PORTC2);
/*
//Update the OCR0A value
pos++;
OCR0A = timer[pos];
if(pos==3)
pos=0;
*/
}