Home Forums EasyTransfer Library Support Forum Does this interfere with SPI? Reply To: Does this interfere with SPI?

#2302
Anonymous
Inactive

Oh no, new issue!

Pins 5 and 6 are hardwired to an h bridge for pwm and pins 11 and 3 are hardwired to the other h bridge on the wild thumper.

Since I’ve attached a Rugged Audio Shield to the board that uses SPI which needs pin 11 for MOSI I cut the pin 11 connection and was planning on using a different pin for pwm, but ran into a problem. I can’t get pwm out of pins 9 and 10 anymore because the Easy Transfer Virtual Wire library which uses timer1, thus disabling my pwm abilities on pins 9 and 10! Is there any way to regain PWM capabilities back to pins 9 and 10? Could I maybe get virtual wire to use timer2 instead and then have 9 and 10 available for pwm and cut the connection for the pin 3 h bridge and reroute? Thanks

Pins 5 and 6: controlled by timer0
Pins 9 and 10: controlled by timer1
Pins 11 and 3: controlled by timer2