Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed C12832 Servo RangeFinder Pulse
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
Generated on Wed Jul 27 2022 00:26:44 by
