Skip to content

Commit

Permalink
Minor nitpicking, name changing, reorganizing.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Jan 5, 2018
1 parent 08e119c commit aad4b51
Show file tree
Hide file tree
Showing 5 changed files with 146 additions and 129 deletions.
2 changes: 1 addition & 1 deletion examples/stepper-accel.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Board.requestPort(function(error, port) {
motorPin2: 5,
motorPin3: 6,
motorPin4: 7,
stepType: board.STEPPER.STEPTYPE.WHOLE
stepSize: board.STEPPER.STEP_SIZE.WHOLE
});

board.accelStepperSpeed(0, 300);
Expand Down
12 changes: 6 additions & 6 deletions examples/stepper-multi.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Board.requestPort(function(error, port) {
motorPin2: 6,
motorPin3: 7,
motorPin4: 8,
stepType: board.STEPPER.STEPTYPE.WHOLE
stepSize: board.STEPPER.STEP_SIZE.WHOLE
});

board.accelStepperConfig({
Expand All @@ -27,27 +27,27 @@ Board.requestPort(function(error, port) {
motorPin2: 10,
motorPin3: 11,
motorPin4: 12,
stepType: board.STEPPER.STEPTYPE.HALF
stepSize: board.STEPPER.STEP_SIZE.HALF
});

board.accelStepperSpeed(0, 400);
board.accelStepperSpeed(1, 400);

board.multiStepperConfig({
groupNum: 0,
devices: [0, 1]
});

board.multiStepperTo(0, [2000, 3000], function() {

board.accelStepperReportPosition(0, function(value) {
console.log("Stepper 0 position: " + value);
});

board.accelStepperReportPosition(1, function(value) {
console.log("Stepper 1 position: " + value);
});

});

});
Expand Down
Loading

0 comments on commit aad4b51

Please sign in to comment.