sdf
Dependencies: mbed C12832 Servo RangeFinder Pulse
Motorrrelay/Motor_relay.h@1:47dc87d326ed, 2022-03-01 (annotated)
- Committer:
- asimelfadil
- Date:
- Tue Mar 01 13:49:18 2022 +0000
- Revision:
- 1:47dc87d326ed
- Parent:
- 0:4db5f0f5faa0
Group 66 Course Work 2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
asimelfadil | 0:4db5f0f5faa0 | 1 | #ifndef MBED_MOTOR_RELAY_H |
asimelfadil | 0:4db5f0f5faa0 | 2 | #define MBED_MOTOR_RELAY_H |
asimelfadil | 0:4db5f0f5faa0 | 3 | |
asimelfadil | 0:4db5f0f5faa0 | 4 | #include "mbed.h" |
asimelfadil | 0:4db5f0f5faa0 | 5 | |
asimelfadil | 0:4db5f0f5faa0 | 6 | class MOTOR_RELAY |
asimelfadil | 0:4db5f0f5faa0 | 7 | { |
asimelfadil | 0:4db5f0f5faa0 | 8 | public: |
asimelfadil | 0:4db5f0f5faa0 | 9 | MOTOR_RELAY(PinName dirA); |
asimelfadil | 0:4db5f0f5faa0 | 10 | void SetMotor(uint8_t direct); |
asimelfadil | 0:4db5f0f5faa0 | 11 | void StopMotor(); |
asimelfadil | 0:4db5f0f5faa0 | 12 | |
asimelfadil | 0:4db5f0f5faa0 | 13 | private: |
asimelfadil | 0:4db5f0f5faa0 | 14 | DigitalOut _pinA; |
asimelfadil | 0:4db5f0f5faa0 | 15 | |
asimelfadil | 0:4db5f0f5faa0 | 16 | }; |
asimelfadil | 0:4db5f0f5faa0 | 17 | |
asimelfadil | 0:4db5f0f5faa0 | 18 | #endif |
asimelfadil | 0:4db5f0f5faa0 | 19 |