sdf
Dependencies: mbed C12832 Servo RangeFinder Pulse
Motorrrelay/Motor_relay.cpp@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 | #include "mbed.h" |
asimelfadil | 0:4db5f0f5faa0 | 2 | #include "Motor_relay.h" |
asimelfadil | 0:4db5f0f5faa0 | 3 | |
asimelfadil | 0:4db5f0f5faa0 | 4 | MOTOR_RELAY::MOTOR_RELAY(PinName dirA) : _pinA(dirA) |
asimelfadil | 0:4db5f0f5faa0 | 5 | { |
asimelfadil | 0:4db5f0f5faa0 | 6 | _pinA=1; |
asimelfadil | 0:4db5f0f5faa0 | 7 | |
asimelfadil | 0:4db5f0f5faa0 | 8 | } |
asimelfadil | 0:4db5f0f5faa0 | 9 | void MOTOR_RELAY::SetMotor(uint8_t direct) |
asimelfadil | 0:4db5f0f5faa0 | 10 | { |
asimelfadil | 0:4db5f0f5faa0 | 11 | |
asimelfadil | 0:4db5f0f5faa0 | 12 | _pinA=direct; |
asimelfadil | 0:4db5f0f5faa0 | 13 | |
asimelfadil | 0:4db5f0f5faa0 | 14 | |
asimelfadil | 0:4db5f0f5faa0 | 15 | |
asimelfadil | 0:4db5f0f5faa0 | 16 | } |
asimelfadil | 0:4db5f0f5faa0 | 17 | void MOTOR_RELAY::StopMotor() |
asimelfadil | 0:4db5f0f5faa0 | 18 | { |
asimelfadil | 0:4db5f0f5faa0 | 19 | _pinA=1; |
asimelfadil | 0:4db5f0f5faa0 | 20 | |
asimelfadil | 0:4db5f0f5faa0 | 21 | } |
asimelfadil | 0:4db5f0f5faa0 | 22 |