Hello world,
I'm trying to use TimerOne ( TimerThree behaves the same) to trigger an interrupt at a programmable time interval, which works fine.
The problem is that Serail1 Rx pin 0 is now set to output high, which breaks the serial input of course. disablePwm( 0 ) doesn't seem to have any impact. I had a quick scan through the library files but found nothing that would explain the issue.
The offending code:
Timer1.initialize( TIMER1_DELAY_US );
Timer1.attachInterrupt( isrFunction );
Timer1.disablePwm( 0 ); // attempt to prevent IO collision with Serial1 Rx
Thoughts appreciated.
I'm trying to use TimerOne ( TimerThree behaves the same) to trigger an interrupt at a programmable time interval, which works fine.
The problem is that Serail1 Rx pin 0 is now set to output high, which breaks the serial input of course. disablePwm( 0 ) doesn't seem to have any impact. I had a quick scan through the library files but found nothing that would explain the issue.
The offending code:
Timer1.initialize( TIMER1_DELAY_US );
Timer1.attachInterrupt( isrFunction );
Timer1.disablePwm( 0 ); // attempt to prevent IO collision with Serial1 Rx
Thoughts appreciated.