Diego Rivera / MotorAPasos

Dependents:   RampaDiscapacitados

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MotorAPasos.h Source File

MotorAPasos.h

00001 #ifndef Motor_h
00002 #define Motor_h
00003 
00004 #include "mbed.h"
00005 
00006 class MotorAPasos
00007 {
00008     public:
00009         MotorAPasos (PinName pin1, PinName pin2, PinName pin3, PinName pin4);
00010         
00011         void derecha();
00012         void izquierda();
00013         void stop();
00014         void pasosPorSegundo(int v);
00015         
00016     private:
00017         BusOut  motor;
00018         int pos;
00019         float vel;
00020     
00021 };
00022 
00023 #endif