Motor shield and pwm

Hi, does DualVNH5019MotorShield’example sketch use pwm frequencies to control dc motors?


Our Arduino library for the Pololu Dual VNH5019 Motor Driver Shield uses 20 kHz hardware PWM if you are using a board based on the ATmega168, ATmega328P, ATmega328PB, or ATmega32U4. On other boards, it uses Arduino’s analogWrite() function, which typically uses a frequency of 490 Hz. However, please note that the speed of the motor is controlled by the duty cycle of the PWM signal (not the frequency).