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.
Diff: StepperDriver.h
- Revision:
- 2:70f593d34039
- Parent:
- 1:9888802e71b9
- Child:
- 3:05586e7efd2b
--- a/StepperDriver.h Fri Dec 02 08:35:20 2016 +0000
+++ b/StepperDriver.h Fri Dec 02 15:56:53 2016 +0000
@@ -75,6 +75,11 @@
*/
float getSpeedSPS();
+ /** Set the pulse width in seconds.
+ * @param pulseWidth Pulse width in seconds.
+ */
+ void setPulseWidth(float pulseWidth);
+
protected:
DigitalOut output, direction;
uint32_t currentPosition, previousPosition, homePosition, minPosition, maxPosition, desiredPosition;