From a91152be95a8a97482747b47d980617ed55d0f0b Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Tue, 30 Aug 2022 22:17:07 +0200 Subject: [PATCH] example of motor shield that does brake on pwn and that reversed which equals out --- MotorDrivers.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MotorDrivers.h b/MotorDrivers.h index 3d930ee..5e42450 100644 --- a/MotorDrivers.h +++ b/MotorDrivers.h @@ -84,6 +84,9 @@ #define STANDARD_MOTOR_SHIELD F("STANDARD_MOTOR_SHIELD"), \ new MotorDriver(3, 12, UNUSED_PIN, 9, A0, 2.99, 1500, UNUSED_PIN), \ new MotorDriver(11, 13, UNUSED_PIN, 8, A1, 2.99, 1500, UNUSED_PIN) +#define BRAKE_PWM_SWAPPED_MOTOR_SHIELD F("BPS_MOTOR_SHIELD"), \ + new MotorDriver(-9 , 12, UNUSED_PIN, -3, A0, 2.99, 1500, UNUSED_PIN), \ + new MotorDriver(-8 , 13, UNUSED_PIN,-11, A1, 2.99, 1500, UNUSED_PIN) #endif // Pololu Motor Shield