広田 勇斗
/
Omni_2017_a
Omni_2017_a
Fork of Omni_2017_z by
2017_3_a/MD/MD.h@2:82c337a18500, 2017-08-05 (annotated)
- Committer:
- hirotayamato
- Date:
- Sat Aug 05 06:11:16 2017 +0000
- Revision:
- 2:82c337a18500
- Parent:
- 2017_3/MD/MD.h@0:fd933ea5f19d
Omni_2017_a
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hirotayamato | 0:fd933ea5f19d | 1 | #ifndef _MD_H_ |
hirotayamato | 0:fd933ea5f19d | 2 | #define _MD_H_ |
hirotayamato | 0:fd933ea5f19d | 3 | #include "mbed.h" |
hirotayamato | 0:fd933ea5f19d | 4 | |
hirotayamato | 0:fd933ea5f19d | 5 | class MD |
hirotayamato | 0:fd933ea5f19d | 6 | { |
hirotayamato | 0:fd933ea5f19d | 7 | public: |
hirotayamato | 0:fd933ea5f19d | 8 | MD(PinName pwm,PinName dere); |
hirotayamato | 0:fd933ea5f19d | 9 | void rotate(double duty); |
hirotayamato | 0:fd933ea5f19d | 10 | private: |
hirotayamato | 0:fd933ea5f19d | 11 | PwmOut Pwm; |
hirotayamato | 0:fd933ea5f19d | 12 | DigitalOut Dere; |
hirotayamato | 0:fd933ea5f19d | 13 | }; |
hirotayamato | 0:fd933ea5f19d | 14 | |
hirotayamato | 0:fd933ea5f19d | 15 | #endif |