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-rtos mbed ssWi
servo.hpp
00001 #ifndef __SERVO_HPP__ 00002 #define __SERVO_HPP__ 00003 00004 00005 #include "mbed.h" 00006 00007 00008 class Servo 00009 { 00010 PwmOut _pwm; 00011 float _min; 00012 float _max; 00013 float _center; 00014 00015 public: 00016 Servo(PinName pwm, float min=0.001, float max=0.002, float center=0.0015); 00017 00018 Servo& operator= (float speed); 00019 00020 operator float(); 00021 00022 }; 00023 00024 #endif //__SERVO_HPP__
Generated on Tue Jul 19 2022 13:36:11 by
1.7.2