No tags
00001 #ifndef MBED_MOTOR_H 00002 #define MBED_MOTOR_H 00003 00004 #include "mbed.h" 00005 00006 class Motor { 00007 00008 public: 00009 00010 Motor(PinName pwm, PinName fwd, PinName rev); 00011 void speed (float); 00012 00013 protected: 00014 PwmOut _pwm; 00015 DigitalOut _fwd; 00016 DigitalOut _rev; 00017 00018 }; 00019 00020 #endif