relayMD
Fork of Motor by
motor.h
- Committer:
- number_key
- Date:
- 2016-09-29
- Revision:
- 1:0efe3050d83e
- Parent:
- 0:ebfdfce2d069
File content as of revision 1:0efe3050d83e:
#ifndef MBED_MOTOR_H #define MBED_MOTOR_H #include "mbed.h" class Motor { public: //pin1,pin2 Digital pin3 Pwm Motor(PinName pin1, PinName pin2, PinName pin3); void motor(double n); private: DigitalOut _pin1; DigitalOut _pin2; PwmOut _pin3; }; #endif