Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
test_motor_main.h
- Committer:
- fionalin
- Date:
- 2022-08-04
- Revision:
- 2:d9745be6c253
File content as of revision 2:d9745be6c253:
#include <cstdio> #include <mbed.h> #include "stepper.h" const PinName MOTOR_ENABLE = D15; const PinName MOTOR_STEP = D9; const PinName MOTOR_DIR = D13; const PinName MOTOR_MS1 = D12; const PinName MOTOR_MS2 = D11; const PinName MOTOR_MS3 = D10; const PinName SLEEP = D1; int main() { StepperMotor motor(MOTOR_ENABLE, MOTOR_STEP, MOTOR_DIR, MOTOR_MS1, MOTOR_MS2, MOTOR_MS3, SLEEP); while(1) { motor.step_positive(); } }