Ligne 83 : |
Ligne 83 : |
| The Adafruit_StepperMotor class represents a stepper motor attached to the shield. You must declare an Adafruit_StepperMotor for each stepper motor in your system. | | The Adafruit_StepperMotor class represents a stepper motor attached to the shield. You must declare an Adafruit_StepperMotor for each stepper motor in your system. |
| | | |
− | == Adafruit_StepperMotor() == | + | === Classe Adafruit_StepperMotor === |
| Adafruit_StepperMotor(void); | | Adafruit_StepperMotor(void); |
| | | |
Ligne 95 : |
Ligne 95 : |
| Adafruit_StepperMotor *myMotor = AFMS.getStepper(200, 2);</nowiki> | | Adafruit_StepperMotor *myMotor = AFMS.getStepper(200, 2);</nowiki> |
| | | |
− | == step( steps, dir, style = SINGLE ) == | + | === step( steps, dir, style = SINGLE ) === |
| void step(uint16_t steps, uint8_t dir, uint8_t style = SINGLE); | | void step(uint16_t steps, uint8_t dir, uint8_t style = SINGLE); |
| | | |
Ligne 106 : |
Ligne 106 : |
| The ste() function is synchronous and does not return until all steps are complete. When complete the motor remains powered to apply "holding torque" to maintain position. | | The ste() function is synchronous and does not return until all steps are complete. When complete the motor remains powered to apply "holding torque" to maintain position. |
| | | |
− | == setSpeed(speed) == | + | === setSpeed(speed) === |
| void setSpeed(uint16_t); | | void setSpeed(uint16_t); |
| | | |
| The setSpeed() function controls the speed of the stepper motor rotation. Speed is specified in RPM. | | The setSpeed() function controls the speed of the stepper motor rotation. Speed is specified in RPM. |
| | | |
− | == onestep( dir, style) == | + | === onestep( dir, style) === |
| uint8_t onestep(uint8_t dir, uint8_t style); | | uint8_t onestep(uint8_t dir, uint8_t style); |
| | | |
Ligne 118 : |
Ligne 118 : |
| Note: Calling step() with a step count of 1 is not the same as calling onestep(). The step function has a delay based on the speed set in setSpeed(). onestep() has no delay. | | Note: Calling step() with a step count of 1 is not the same as calling onestep(). The step function has a delay based on the speed set in setSpeed(). onestep() has no delay. |
| | | |
− | == release() == | + | === release() === |
| void release(void); | | void release(void); |
| | | |