Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Motor_3/Motor_3.h
- Committer:
- himarsmty
- Date:
- 2018-05-07
- Revision:
- 0:b7d3adaffc0a
File content as of revision 0:b7d3adaffc0a:
#ifndef MOTOR_3_H_
#define MOTOR_3_H_
#include "mbed.h"
DigitalOut mydia1(PinName a1,int b1);
DigitalOut mydia2(PinName a2,int b2);
PwmOut mypwa(PinName pa);
class Motor_3{
public:
Motor_3(PinName dia1,PinName dia2,PinName pwa);
void mv(double speed);
int _pwmout;
protected:
PinName _dia1;
PinName _dia2;
PinName _pwa;
};
#endif