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.
Dependents: Robot2016_2-0_STATIC Robot2016_2-0
Fork of StepperMotor by
Stepper.h
00001 #ifndef MBED_STEPPER_H 00002 #define MBED_STEPPER_H 00003 #endif 00004 00005 #include "mbed.h" 00006 #define DELAY 0.007 00007 00008 class Stepper 00009 { 00010 public: 00011 Stepper(PinName _en, PinName _stepPin, PinName dir, float step_per_mm); 00012 void step(int number, int dir, float speed); 00013 void mm(int number, int dir); 00014 void enable(); 00015 void disable(); 00016 00017 float Step_Per_MM; 00018 private: 00019 DigitalOut en; 00020 DigitalOut stepPin; 00021 DigitalOut direction; 00022 };
Generated on Tue Jul 12 2022 18:31:57 by
1.7.2
