Skip to content

Commit 1f46fd4

Browse files
committed
Added support to the nano 33 IoT
Added support to the correct pinout for nano iot 33.
1 parent e42c1eb commit 1f46fd4

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/Common.h

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,19 @@ enum IRQCause {
5757
#define MOTOR_4_PIN_A 4
5858
#define MOTOR_4_PIN_B 5
5959

60-
#define IN1 A6
61-
#define IN2 A1
62-
#define IN3 A5
63-
#define IN4 A2
60+
61+
#ifdef ARDUINO_SAMD_NANO_33_IOT
62+
#define IN1 A7
63+
#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+
6473

6574
namespace mc {
6675
int getData(Commands cmd, uint8_t target, uint8_t* buf);

0 commit comments

Comments
 (0)