We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b430945 commit 484c4e2Copy full SHA for 484c4e2
extras/D11-Firmware/Common.h
@@ -43,21 +43,18 @@ enum IRQCause {
43
#define MOTOR_2_COUNTER TC1
44
#define MOTOR_1_COUNTER TC2
45
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
+
51
#include "config.h"
52
#ifdef NANO_MOTOR_CARRIER
-#define MOTOR_2_PIN_A 5
-#define MOTOR_2_PIN_B 4
-#define MOTOR_1_PIN_A 6
-#define MOTOR_1_PIN_B 7
53
#define ENCODER_1_PIN_A 8
54
#define ENCODER_1_PIN_B 9
55
#define ENCODER_2_PIN_A 11
56
#define ENCODER_2_PIN_B 10
57
#else
-#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
61
#define ENCODER_1_PIN_A 9
62
#define ENCODER_1_PIN_B 8
63
#define ENCODER_2_PIN_A 10
0 commit comments