31 #define MIN_PULSE_WIDTH 600 32 #define MAX_PULSE_WIDTH 2500 38 #define DEFAULT_WAIT_DISABLE_PWM 0 66 Servo (
int pin,
int minPulseWidth,
int maxPulseWidth);
77 Servo (
int pin,
int minPulseWidth,
int maxPulseWidth,
int waitAndDisablePwm);
150 int calcPulseTraveling (
int value);
155 mraa_pwm_context m_pwmServoContext;
162 int m_waitAndDisablePwm;
165 void init (
int pin,
int minPulseWidth,
int maxPulseWidth,
int waitAndDisablePwm);
mraa_result_t setAngle(int angle)
Definition: servo.cxx:63
void setMinPulseWidth(int width)
Definition: servo.cxx:111
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void setMaxPulseWidth(int width)
Definition: servo.cxx:116
int getPeriod()
Definition: servo.cxx:136
std::string name()
Definition: servo.hpp:102
void setPeriod(int period)
Definition: servo.cxx:121
int getMaxPulseWidth()
Definition: servo.cxx:131
int getMinPulseWidth()
Definition: servo.cxx:126
~Servo()
Definition: servo.cxx:49
Servo(int pin)
Definition: servo.cxx:37
mraa_result_t haltPwm()
Definition: servo.cxx:88