Skip to content

Commit fc4b977

Browse files
committed
Update firmware.ino
1 parent 63857b2 commit fc4b977

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hardware/motor-control-board/firmware/firmware.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <Servo.h>
22

33
#define SPU 80 // 20 teeth pulley, 16 microstep, 2mm a tooth belt, 16*200 microsteps per turn == (16*200)/(20*2) == 80
4-
#define PIN_SERVO D4
4+
#define PIN_SERVO D6
55

66
Servo servo;
77

@@ -15,10 +15,10 @@ struct EventCallback {
1515

1616
float pos[] = {0, 0};
1717

18-
const int motor1StepPin = D6;
19-
const int motor1DirPin = D5;
20-
const int motor2StepPin = D7;
21-
const int motor2DirPin = D8;
18+
const int motor1StepPin = D10;
19+
const int motor1DirPin = D9;
20+
const int motor2StepPin = D8;
21+
const int motor2DirPin = D7;
2222

2323
void setup() {
2424
servo.attach(PIN_SERVO);

0 commit comments

Comments
 (0)