Asim El-Awad / Mbed 2 deprecated LilCW2Proj

Dependencies:   mbed C12832 Servo RangeFinder Pulse

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Motor_relay.cpp Source File

Motor_relay.cpp

00001 #include "mbed.h"
00002 #include "Motor_relay.h"
00003  
00004 MOTOR_RELAY::MOTOR_RELAY(PinName dirA) : _pinA(dirA)
00005 {
00006     _pinA=1;
00007    
00008 }
00009 void MOTOR_RELAY::SetMotor(uint8_t direct)
00010 {
00011    
00012         _pinA=direct;
00013     
00014  
00015    
00016 }
00017 void MOTOR_RELAY::StopMotor()
00018 {
00019     _pinA=1;
00020    
00021 }
00022