#include // // Creates a object FabMotorController MotorControl; void setup() { Serial.begin(115200); // Initializes I2C communication with the secondary at address 0x04 MotorControl.begin(0x04); } void loop() { // Forward test at 70% speed MotorControl.run(OUTPUT1, 70); delay(1000); MotorControl.stop(OUTPUT1); delay(1000); MotorControl.run(OUTPUT2, 70); delay(1000); MotorControl.stop(OUTPUT2); delay(1000); // Backward test at 30% speed MotorControl.run(OUTPUT1, -30); delay(1000); MotorControl.stop(OUTPUT1); delay(1000); MotorControl.run(OUTPUT2, -30); delay(1000); MotorControl.stop(OUTPUT2); delay(1000); }