relayMD
Fork of Motor by
motor.h
- Committer:
- number_key
- Date:
- 2016-09-05
- Revision:
- 0:ebfdfce2d069
- Child:
- 1:0efe3050d83e
File content as of revision 0:ebfdfce2d069:
#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(float n); private: DigitalOut _pin1; DigitalOut _pin2; PwmOut _pin3; }; #endif