Drives a DC motor through H-Bridge IC such as L293 or L298.
Possible errors:
— Invalid port
h-bridge-dc-motor
@/h-bridge-dc-motor
Drives a DC motor through H-Bridge IC such as L293 or L298.
Possible errors:
— Invalid port
DIRport
Board port to which the direction pin of the H-Bridge is connected.
PWMport
Board port to which the PWM (aka Enable) pin of the H-Bridge is connected. The port should be capable of producting PWM signal.
SPDnumber
Desired speed of the motor in [-1.0, 1.0] range. Negative values denote clockwise rotation, zero denotes full stop, positive values denote counterclockwise direction.
ACTboolean
Makes h-bridge reacts on incoming value change while `ACT` is true.