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 MODSERIAL FATFileSystem
PololuHBridge.hpp
00001 #ifndef POLOLUHBRIDGE_HPP 00002 #define POLOLUHBRIDGE_HPP 00003 00004 #include "mbed.h" 00005 00006 class PololuHBridge 00007 { 00008 public: 00009 PololuHBridge(PinName pwm, PinName dir, PinName reset); 00010 00011 void run(float cmd); 00012 void reset(); 00013 void stop(); 00014 00015 protected: 00016 PwmOut _pwm; 00017 DigitalOut _direction; 00018 DigitalOut _rst; 00019 float _p; 00020 float _clamp(float value, float min, float max); 00021 }; 00022 00023 #endif
Generated on Thu Jul 14 2022 10:54:35 by
