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.
Motor.h
00001 // H-Bridge Motor Control 00002 // Copyright (c) 2009 sford 00003 // Released under the MIT License: http://mbed.org/license/mit 00004 00005 #ifndef MBED_MOTOR_H 00006 #define MBED_MOTOR_H 00007 00008 #include "mbed.h" 00009 00010 class Motor { 00011 public: 00012 Motor(PinName pwm, PinName fwd, PinName rev); 00013 void speed(float); 00014 00015 protected: 00016 PwmOut _pwm; 00017 DigitalOut _fwd; 00018 DigitalOut _rev; 00019 }; 00020 00021 #endif
Generated on Mon Jul 18 2022 00:17:18 by
1.7.2