Skip to content

Commit 484c4e2

Browse files
committed
NanoMotorCarrier: only reverse Encoders
1 parent b430945 commit 484c4e2

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

extras/D11-Firmware/Common.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,18 @@ enum IRQCause {
4343
#define MOTOR_2_COUNTER TC1
4444
#define MOTOR_1_COUNTER TC2
4545

46+
#define MOTOR_2_PIN_A 4
47+
#define MOTOR_2_PIN_B 5
48+
#define MOTOR_1_PIN_A 7
49+
#define MOTOR_1_PIN_B 6
50+
4651
#include "config.h"
4752
#ifdef NANO_MOTOR_CARRIER
48-
#define MOTOR_2_PIN_A 5
49-
#define MOTOR_2_PIN_B 4
50-
#define MOTOR_1_PIN_A 6
51-
#define MOTOR_1_PIN_B 7
5253
#define ENCODER_1_PIN_A 8
5354
#define ENCODER_1_PIN_B 9
5455
#define ENCODER_2_PIN_A 11
5556
#define ENCODER_2_PIN_B 10
5657
#else
57-
#define MOTOR_2_PIN_A 4
58-
#define MOTOR_2_PIN_B 5
59-
#define MOTOR_1_PIN_A 7
60-
#define MOTOR_1_PIN_B 6
6158
#define ENCODER_1_PIN_A 9
6259
#define ENCODER_1_PIN_B 8
6360
#define ENCODER_2_PIN_A 10

0 commit comments

Comments
 (0)