I'm working with the latest rev of the Arduino TimerOne Library.
If I do NOT use the TimerOne.attachinterrupt(xxx) function, Pin 10 generates a proper PWM signal per supplied parameters.
When I call TimerOne.Attachinterrupt(isr,frequency) or just ...(isr) the call never 'returns' - ie the signal on Pin 10 does not start, the loop doesn't get entered. I turn on an LED before call the attach, then turn it off in the next line - but the LED never goes off.
The ISR only decrements a global volatile variable
It appears the AttachISR is breaking something... Code setup follows:
pinMode(LED,OUTPUT);
digitalWrite(LED,HIGH);
MyTime.attachInterrupt(ISRFUNC,pwmFreq);
digitalWrite(LED,LOW);
MyTime.initialize(pwmFreq);
MyTime.pwm(pwmPin,pwmDC,pwmFreq);
MyTime.start();