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 e42c1eb commit 1f46fd4Copy full SHA for 1f46fd4
src/Common.h
@@ -57,10 +57,19 @@ enum IRQCause {
57
#define MOTOR_4_PIN_A 4
58
#define MOTOR_4_PIN_B 5
59
60
-#define IN1 A6
61
-#define IN2 A1
62
-#define IN3 A5
63
-#define IN4 A2
+
+#ifdef ARDUINO_SAMD_NANO_33_IOT
+ #define IN1 A7
+ #define IN2 A2
64
+ #define IN3 A6
65
+ #define IN4 A3
66
+#else
67
+ #define IN1 A6
68
+ #define IN2 A1
69
+ #define IN3 A5
70
+ #define IN4 A2
71
+#endif
72
73
74
namespace mc {
75
int getData(Commands cmd, uint8_t target, uint8_t* buf);
0 commit comments