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_2/motor_2.h@0:2bcec9d5fa46, 2018-05-12 (annotated)
- Committer:
- himarsmty
- Date:
- Sat May 12 14:28:20 2018 +0000
- Revision:
- 0:2bcec9d5fa46
z
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| himarsmty | 0:2bcec9d5fa46 | 1 | #ifndef MOTOR_2_H |
| himarsmty | 0:2bcec9d5fa46 | 2 | #define MOTOR_2_H |
| himarsmty | 0:2bcec9d5fa46 | 3 | #include "mbed.h" |
| himarsmty | 0:2bcec9d5fa46 | 4 | class Motor_2{ |
| himarsmty | 0:2bcec9d5fa46 | 5 | public: |
| himarsmty | 0:2bcec9d5fa46 | 6 | Motor_2(PinName pw1,PinName pw2); |
| himarsmty | 0:2bcec9d5fa46 | 7 | void speed(int speed); |
| himarsmty | 0:2bcec9d5fa46 | 8 | protected: |
| himarsmty | 0:2bcec9d5fa46 | 9 | PwmOut _pw1; |
| himarsmty | 0:2bcec9d5fa46 | 10 | PwmOut _pw2; |
| himarsmty | 0:2bcec9d5fa46 | 11 | }; |
| himarsmty | 0:2bcec9d5fa46 | 12 | #endif |