sdf
Dependencies: mbed C12832 Servo RangeFinder Pulse
Motorrrelay/Motor_relay.h@0:4db5f0f5faa0, 2022-02-23 (annotated)
- Committer:
- asimelfadil
- Date:
- Wed Feb 23 10:19:24 2022 +0000
- Revision:
- 0:4db5f0f5faa0
Jon
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 |