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.
Dependents: JS_1motor_20170707_ok Task_1_BallRidingbot_KeepingStationCatching_layingDown_1230 Task_2_BallRidingbot_MovingForwardCatching_backward_1230 testSSWMR_StationKeeping_200170830_OK ... more
Servo.h
00001 #include "mbed.h" 00002 00003 class Servo { 00004 public: 00005 Servo(PinName pwm32); 00006 00007 int invert; 00008 00009 float read(void); 00010 void write(float); 00011 void calibrate(float,float,float); 00012 00013 private: 00014 PwmOut _pwm; 00015 00016 float _period; 00017 float _min; 00018 float _max; 00019 float _slope; 00020 00021 float _pos; 00022 };
Generated on Thu Jul 14 2022 03:53:31 by
1.7.2