Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
MotorsIntroduction | ||||||||
Line: 74 to 74 | ||||||||
| ||||||||
Changed: | ||||||||
< < | You can set the mode with the method stepMode(): | |||||||
> > | You can set the mode with the method stepMode(): | |||||||
stepper.stepMode(stepper.DOUBLE_PHASE_FORWARD)You can change the movement speed with the method waitAfterSteps() which defines how long to wait after each step in ms. Valid values are 2..1000. Again the method returns the value currently in use if called without a parameter. | ||||||||
Line: 84 to 83 | ||||||||
Finally the method move(noOfSteps) moves the stepping motor noOfSteps in the mode and with the speed currently selected. | ||||||||
Added: | ||||||||
> > | The exercise sheet in odt format: https://iotworkshop.africa/pub/IoT_Course_English/Motors/exercise_7.odt | |||||||
-- Uli Raich - 2020-06-25
Comments | ||||||||
Line: 94 to 97 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|