libspiagentspiagent_ |
public static void spiagent_motor_configure( uint pwmpin, uint dirpin, out int error )
All PWM outputs share the same pulse frequency.
You must set the common PWM pulse output frequency with a call to spiagent_pwm_set_frequency()before configuring an H-Bridge DC motor driver.
Certain motor driver modules such as the Cytron MD13s can driven by GPIO direction and PWM speed signals. Most will require some form of motor driver signal transcoding such as the MUNTS-0005 PWM Isolator/Encoder module.