Steven Swenson / Motor

Dependents:   tuner

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Motor.h Source File

Motor.h

00001 #pragma once
00002 #include "mbed.h"
00003 #include "string.h"
00004 
00005 using namespace std;
00006 
00007 class Motor {
00008 
00009 public:
00010 
00011     Motor(PinName enable,PinName direction,PinName step);
00012     ~Motor();
00013 
00014     void motor_turn(int, int);
00015 
00016 private:
00017     DigitalOut _enable;
00018     DigitalOut _direction;
00019     PwmOut _step;
00020 };