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.
DCmotor.hpp
00001 #pragma once 00002 #include<mbed.h> 00003 #include<portSet.hpp> 00004 00005 class DCmotor 00006 { 00007 public: 00008 DCmotor(Port motor, float max_pwm, float min_pwm, bool CW_flag); 00009 DCmotor(PinName pin_a, PinName pin_b, float max_pwm, float min_pwm, bool CW_flag); 00010 void drive(float pwm); 00011 private: 00012 Port motor_; 00013 float max_pwm_; 00014 float min_pwm_; 00015 bool CW_flag_; 00016 };
Generated on Sat Oct 15 2022 07:52:33 by
1.7.2