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/PololuHBridge.hpp
- Committer:
- tnhnrl
- Date:
- 2018-06-18
- Revision:
- 62:d502889e74f1
File content as of revision 62:d502889e74f1:
#ifndef POLOLUHBRIDGE_HPP #define POLOLUHBRIDGE_HPP #include "mbed.h" class PololuHBridge { public: PololuHBridge(PinName pwm, PinName dir, PinName reset); void run(float cmd); void reset(); void stop(); protected: PwmOut _pwm; DigitalOut _direction; DigitalOut _rst; float _p; float _clamp(float value, float min, float max); }; #endif