Teste de passos

Revision:
0:3c2829d3f80f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Apr 13 14:07:16 2020 +0000
@@ -0,0 +1,31 @@
+#ifndef MBED_STEPPER_H
+#define MBED_STEPPER_H
+
+#include "mbed.h"
+
+Stepper control class 
+
+//Example:
+   //@code
+   // apply number of steps, direction, speed and 
+   // a linear acceleration/deceleration to a Stepper Motor Controller
+   #include "mbed.h"
+   #include "stepper.h"
+  
+   #define ACCEL_ON  1
+   #define ACCEL_OFF 0
+   #define SPEED 100
+   
+   stepper x(P1_02,P0_23);
+   //stepper y(P19,P22);
+   //stepper z(P20,P23);
+  
+   int main()
+   {
+     x.step(1000,1,SPEED,ACCEL_ON); 
+     //y.step(5000,0,SPEED,ACCEL_ON); 
+     //z.step(2000,1,SPEED,ACCEL_ON);
+  
+   }
+   //@endcode
+ 
\ No newline at end of file