photodude / G2MotorDriver

Arduino library for the Pololu G2 High-Power Motor Driver breakout board https://www.pololu.com/product/2991
0 stars 1 forks source link

Timer pins for PWM are different depending on the board your using #3

Open photodude opened 5 years ago

photodude commented 5 years ago

Timer 1 PWM pins on the Uno are 9 and 10 but on the Mega Timer 1 pins for PWM are 11, and 12. the PWM frequency change needs to be more robust to handle cases of any timer 1 PWM pin and differences between boards.

For examples on how to do this see:

photodude commented 5 years ago

Code in master branch should now work with uno on either PWM pin for timer 1