Examples

The following examples are provided in the library:

half-bridge

Usage of HalfBridge class API showing how to initialize, set a 50% duty cycle, enable the output and diagnose the device.

shield-half-bridge

Usage of DCShield class API showing how to initialize, set different slew rates, set a 50% duty cycle, toggle the output, diagnose, and implement a fail safe mechanism.

shield-motor-control

Usage of the MotorControl class API showing how to initialize a motor, set a certain speed, drive the motor in both directions, freewheel, and brake.