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@0:5d1c1999d61d, 2018-05-07 (annotated)
- Committer:
- himarsmty
- Date:
- Mon May 07 06:58:54 2018 +0000
- Revision:
- 0:5d1c1999d61d
s
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
himarsmty | 0:5d1c1999d61d | 1 | #ifndef MOTOR_3_H_ |
himarsmty | 0:5d1c1999d61d | 2 | #define MOTOR_3_H_ |
himarsmty | 0:5d1c1999d61d | 3 | #include "mbed.h" |
himarsmty | 0:5d1c1999d61d | 4 | |
himarsmty | 0:5d1c1999d61d | 5 | DigitalOut mydia1(PinName a1,int b1); |
himarsmty | 0:5d1c1999d61d | 6 | DigitalOut mydia2(PinName a2,int b2); |
himarsmty | 0:5d1c1999d61d | 7 | PwmOut mypwa(PinName pa); |
himarsmty | 0:5d1c1999d61d | 8 | |
himarsmty | 0:5d1c1999d61d | 9 | |
himarsmty | 0:5d1c1999d61d | 10 | class Motor_3{ |
himarsmty | 0:5d1c1999d61d | 11 | public: |
himarsmty | 0:5d1c1999d61d | 12 | Motor_3(PinName dia1,PinName dia2,PinName pwa); |
himarsmty | 0:5d1c1999d61d | 13 | void mv(double speed); |
himarsmty | 0:5d1c1999d61d | 14 | int _pwmout; |
himarsmty | 0:5d1c1999d61d | 15 | protected: |
himarsmty | 0:5d1c1999d61d | 16 | PinName _dia1; |
himarsmty | 0:5d1c1999d61d | 17 | PinName _dia2; |
himarsmty | 0:5d1c1999d61d | 18 | PinName _pwa; |
himarsmty | 0:5d1c1999d61d | 19 | }; |
himarsmty | 0:5d1c1999d61d | 20 | #endif |